diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2014-05-20 21:00:28 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2014-05-22 15:13:29 (GMT) |
commit | 9ba91463e61b1e4ff5b3dcdea82981f65097e7dd (patch) | |
tree | 74d19a1efce36da1eb217d3782d7753c4e2fd42b /Tests/RunCMake/CMP0053/CMP0053-OLD.cmake | |
parent | 3ea9bde8450a28b58730230e9e73e4b8d439f701 (diff) | |
download | CMake-9ba91463e61b1e4ff5b3dcdea82981f65097e7dd.zip CMake-9ba91463e61b1e4ff5b3dcdea82981f65097e7dd.tar.gz CMake-9ba91463e61b1e4ff5b3dcdea82981f65097e7dd.tar.bz2 |
tests: test CMP0053 in WARN mode when watching variables
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.
Diffstat (limited to 'Tests/RunCMake/CMP0053/CMP0053-OLD.cmake')
-rw-r--r-- | Tests/RunCMake/CMP0053/CMP0053-OLD.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMP0053/CMP0053-OLD.cmake b/Tests/RunCMake/CMP0053/CMP0053-OLD.cmake new file mode 100644 index 0000000..41f5347 --- /dev/null +++ b/Tests/RunCMake/CMP0053/CMP0053-OLD.cmake @@ -0,0 +1,8 @@ +cmake_policy(SET CMP0053 OLD) + +function (watch_callback) + message("called") +endfunction () + +variable_watch(test watch_callback) +message("-->${test}<--") |