summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/set/ParentPulling.cmake
blob: 2614533f4e7a7416f2ab9145fe6eab97f0afac57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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}")