diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2018-10-11 22:08:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-10-15 17:59:39 (GMT) |
commit | 82a48226107e2ee0d073eaf521750c8354b67e41 (patch) | |
tree | 14408171e839f774b71c302f12d9af4f9c28ec46 /Tests/RunCMake/Syntax/CMP0053-Dollar-OLD.cmake | |
parent | fd02538974dd952a8639d371c2c0067d30d5469a (diff) | |
download | CMake-82a48226107e2ee0d073eaf521750c8354b67e41.zip CMake-82a48226107e2ee0d073eaf521750c8354b67e41.tar.gz CMake-82a48226107e2ee0d073eaf521750c8354b67e41.tar.bz2 |
CMP0053: document that `$` is a valid literal variable character
This was overlooked in the initial implementation of CMP0053. However,
an additional policy to reject it again is not worth it. Instead, add
tests and document the behavior.
Fixes: #17883
Diffstat (limited to 'Tests/RunCMake/Syntax/CMP0053-Dollar-OLD.cmake')
-rw-r--r-- | Tests/RunCMake/Syntax/CMP0053-Dollar-OLD.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/Syntax/CMP0053-Dollar-OLD.cmake b/Tests/RunCMake/Syntax/CMP0053-Dollar-OLD.cmake new file mode 100644 index 0000000..647f464 --- /dev/null +++ b/Tests/RunCMake/Syntax/CMP0053-Dollar-OLD.cmake @@ -0,0 +1,6 @@ +cmake_policy(SET CMP0053 OLD) + +set($ value) +set(dollar $) +message("-->${${dollar}}<--") +message("-->${$}<--") |