mirror of
https://github.com/reactos/CMake.git
synced 2024-12-15 15:48:52 +00:00
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.
9 lines
154 B
CMake
9 lines
154 B
CMake
cmake_policy(SET CMP0053 NEW)
|
|
|
|
function (watch_callback)
|
|
message("called")
|
|
endfunction ()
|
|
|
|
variable_watch(test watch_callback)
|
|
message("-->${test}<--")
|