3 VARIABLE_WATCH(TESTVAR MESSAGE)
4 VARIABLE_WATCH(TESTVAR1)
6 macro(testwatch var access file stack)
7 MESSAGE("There was a ${access} access done on the variable: ${var} in file ${file}")
8 MESSAGE("List file stack is: ${stack}")
12 VARIABLE_WATCH(somevar testwatch)
20 message("Variable: ${somevar}")
21 if(NOT somevar_watched)
22 message(SEND_ERROR "'somevar' watch failed!")
27 message("Variable: ${somevar}")
28 if(NOT somevar_watched)
29 message(SEND_ERROR "'somevar' watch failed!")