CMake/Tests/RunCMake/add_subdirectory/Function/CMakeLists.txt

6 lines
234 B
CMake

message(STATUS "var='${var}' in subdirectory before set")
set(var 3)
message(STATUS "var='${var}' in subdirectory after set")
set(var_sub sub PARENT_SCOPE)
message(STATUS "var_sub='${var_sub}' in subdirectory after set PARENT_SCOPE")