summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/project/ProjectIsTopLevel.cmake
blob: 5a0af0aaa1103fdbf981658de13c0f47a1d03316 (plain)
1
2
3
4
5
6
7
8
9
# no project() call, includer already calls project(${RunCMake_TEST} 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 "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}")