diff options
author | Brad King <brad.king@kitware.com> | 2017-11-01 14:43:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-11-01 15:46:53 (GMT) |
commit | a0ec14d36361567e374672e0d115e584548702b8 (patch) | |
tree | c4fbff560cce9f0cadf602c73f48cbf26f0a096f /Tests/RunCMake/CMP0051 | |
parent | 9d742defd925e63eefe37e22f61c22bdec49c044 (diff) | |
download | CMake-a0ec14d36361567e374672e0d115e584548702b8.zip CMake-a0ec14d36361567e374672e0d115e584548702b8.tar.gz CMake-a0ec14d36361567e374672e0d115e584548702b8.tar.bz2 |
Add deprecation warnings for policies CMP0054 and below
The OLD behaviors of all policies are deprecated, but only by
documentation. Add an explicit deprecation diagnostic for some policies
to encourage projects to port away from setting policies to OLD.
Diffstat (limited to 'Tests/RunCMake/CMP0051')
-rw-r--r-- | Tests/RunCMake/CMP0051/CMP0051-OLD-result.txt | 1 | ||||
-rw-r--r-- | Tests/RunCMake/CMP0051/CMP0051-OLD-stderr.txt | 13 |
2 files changed, 12 insertions, 2 deletions
diff --git a/Tests/RunCMake/CMP0051/CMP0051-OLD-result.txt b/Tests/RunCMake/CMP0051/CMP0051-OLD-result.txt deleted file mode 100644 index 573541a..0000000 --- a/Tests/RunCMake/CMP0051/CMP0051-OLD-result.txt +++ /dev/null @@ -1 +0,0 @@ -0 diff --git a/Tests/RunCMake/CMP0051/CMP0051-OLD-stderr.txt b/Tests/RunCMake/CMP0051/CMP0051-OLD-stderr.txt index cc17f33..697265e 100644 --- a/Tests/RunCMake/CMP0051/CMP0051-OLD-stderr.txt +++ b/Tests/RunCMake/CMP0051/CMP0051-OLD-stderr.txt @@ -1 +1,12 @@ -^Sources: "empty.cpp"$ +^CMake Deprecation Warning at CMP0051-OLD.cmake:2 \(cmake_policy\): + The OLD behavior for policy CMP0051 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\) ++ +Sources: "empty.cpp"$ |