mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 20:00:38 -06:00
Fix the implementation, clarify the documentation, and add tests. Fixes: #25026 Co-authored-by: Brad King <brad.king@kitware.com>
10 lines
467 B
CMake
10 lines
467 B
CMake
if(DEFINED CMAKE_PARENT_LIST_FILE)
|
|
message(SEND_ERROR "`CMAKE_PARENT_LIST_FILE` is not expected to be set here")
|
|
endif()
|
|
message(STATUS "ParentVariableScript.cmake: '${CMAKE_PARENT_LIST_FILE}'")
|
|
include("${CMAKE_CURRENT_LIST_DIR}/ParentVariableScript/include1.cmake")
|
|
if(DEFINED CMAKE_PARENT_LIST_FILE)
|
|
message(SEND_ERROR "`CMAKE_PARENT_LIST_FILE` is not expected to be set here")
|
|
endif()
|
|
message(STATUS "ParentVariableScript.cmake: '${CMAKE_PARENT_LIST_FILE}'")
|