1set(FOO TRUE) 2project(ProjectInclude LANGUAGES NONE) 3if(NOT AUTO_INCLUDE) 4 message(FATAL_ERROR "include file not found") 5endif() 6 7