Tests/RunCMake/include/ParentVariableScript.cmake
raw| 1 | if(DEFINED CMAKE_PARENT_LIST_FILE) |
| 2 | message(SEND_ERROR "`CMAKE_PARENT_LIST_FILE` is not expected to be set here") |
| 3 | endif() |
| 4 | message(STATUS "ParentVariableScript.cmake: '${CMAKE_PARENT_LIST_FILE}'") |
| 5 | include("${CMAKE_CURRENT_LIST_DIR}/ParentVariableScript/include1.cmake") |
| 6 | if(DEFINED CMAKE_PARENT_LIST_FILE) |
| 7 | message(SEND_ERROR "`CMAKE_PARENT_LIST_FILE` is not expected to be set here") |
| 8 | endif() |
| 9 | message(STATUS "ParentVariableScript.cmake: '${CMAKE_PARENT_LIST_FILE}'") |