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-stderr.txt | |
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-stderr.txt')
-rw-r--r-- | Tests/RunCMake/Syntax/CMP0053-Dollar-OLD-stderr.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Tests/RunCMake/Syntax/CMP0053-Dollar-OLD-stderr.txt b/Tests/RunCMake/Syntax/CMP0053-Dollar-OLD-stderr.txt new file mode 100644 index 0000000..aecd4d3 --- /dev/null +++ b/Tests/RunCMake/Syntax/CMP0053-Dollar-OLD-stderr.txt @@ -0,0 +1,24 @@ +^CMake Deprecation Warning at CMP0053-Dollar-OLD.cmake:1 \(cmake_policy\): + The OLD behavior for policy CMP0053 will be removed from a future version + of CMake. + + The cmake-policies\(7\) manual explains that the OLD behaviors of all + policies are deprecated and that a policy should be set to OLD only under + specific short-term circumstances. Projects should be ported to the NEW + behavior and not rely on setting a policy to OLD. +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) ++ +-->value<-- +CMake Error at CMP0053-Dollar-OLD.cmake:6 \(message\): + Syntax error in cmake code at + + .*CMP0053-Dollar-OLD.cmake:6 + + when parsing string + + -->\${\$}<-- + + syntax error, unexpected \$, expecting } \(7\) +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\)$ |