You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
677 B
15 lines
677 B
# only one project() call, includer already calls project(${RunCMake_TEST} NONE)
|
|
project(IsTopLevel NONE)
|
|
if(NOT DEFINED PROJECT_IS_TOP_LEVEL)
|
|
message(FATAL_ERROR "PROJECT_IS_TOP_LEVEL is not defined")
|
|
endif()
|
|
if(NOT DEFINED "CACHE{${RunCMake_TEST}_IS_TOP_LEVEL}")
|
|
message(FATAL_ERROR "${RunCMake_TEST}_IS_TOP_LEVEL is not defined")
|
|
endif()
|
|
if(NOT DEFINED CACHE{IsTopLevel_IS_TOP_LEVEL})
|
|
message(FATAL_ERROR "IsTopLevel_IS_TOP_LEVEL is not defined")
|
|
endif()
|
|
message(STATUS "PROJECT_IS_TOP_LEVEL=${PROJECT_IS_TOP_LEVEL}")
|
|
message(STATUS "${RunCMake_TEST}_IS_TOP_LEVEL=${${RunCMake_TEST}_IS_TOP_LEVEL}")
|
|
message(STATUS "IsTopLevel_IS_TOP_LEVEL=${IsTopLevel_IS_TOP_LEVEL}")
|