summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/variable_watch/RaiseInParentScope.cmake
blob: 207798e4b0efb32d3fba7341066efc0b2d71f6cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

function(watch variable access value)
  message("${variable} ${access} ${value}")
endfunction ()

# --------------

variable_watch(var watch)
set(var "a")

function(f)
  set(var "b" PARENT_SCOPE)
endfunction(f)

f()