mirror of
https://github.com/reactos/CMake.git
synced 2024-12-15 23:57:44 +00:00
064c415d27
Test code courtesy of Alex Merry <alex.merry@kde.org>.
14 lines
315 B
CMake
14 lines
315 B
CMake
cmake_minimum_required(VERSION 3.0)
|
|
project(Minimal NONE)
|
|
|
|
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}")
|