cmake/Tests/RunCMake/variable_watch/RaiseInParentScope.cmake
2018-08-09 18:06:22 +02:00

16 lines
217 B
CMake

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()