You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cmake/Tests/CMakeTests/VariableWatchTest.cmake.in

23 lines
469 B

MESSAGE("Start")
VARIABLE_WATCH(TESTVAR MESSAGE)
VARIABLE_WATCH(TESTVAR1)
macro(testwatch var access file stack)
MESSAGE("There was a ${access} access done on the variable: ${var} in file ${file}")
MESSAGE("List file stack is: ${stack}")
endmacro(testwatch)
VARIABLE_WATCH(somevar testwatch)
set(TESTVAR1 "1")
set(TESTVAR "1")
set(TESTVAR1 "0")
set(TESTVAR "0")
message("Variable: ${somevar}")
set(somevar "1")
message("Variable: ${somevar}")
remove(somevar)