9ba91463e6
When CMP0053 is in WARN mode, variables get expanded twice, leaking the fact that the string was expanded twice and changing behavior. Instead, suppress variable watches when running the expansion to trigger the CMP0053 warning.
7 lines
123 B
CMake
7 lines
123 B
CMake
function (watch_callback)
|
|
message("called")
|
|
endfunction ()
|
|
|
|
variable_watch(test watch_callback)
|
|
message("-->${test}<--")
|