mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-06 23:29:31 -06:00
For policy-specific tests, use the version before the policy was introduced. Otherwise, use 3.5 where possible. Also, remove `cmake_minimum_required()` and `project()` calls from individual cases where they are handled by `CMakeLists.txt`.
11 lines
256 B
CMake
11 lines
256 B
CMake
function(test_set)
|
|
set(blah "value2")
|
|
message("before PARENT_SCOPE blah=${blah}")
|
|
set(blah ${blah} PARENT_SCOPE)
|
|
message("after PARENT_SCOPE blah=${blah}")
|
|
endfunction()
|
|
|
|
set(blah value1)
|
|
test_set()
|
|
message("in parent scope, blah=${blah}")
|