summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0053
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-11-01 14:43:25 (GMT)
committerBrad King <brad.king@kitware.com>2017-11-01 15:46:53 (GMT)
commita0ec14d36361567e374672e0d115e584548702b8 (patch)
treec4fbff560cce9f0cadf602c73f48cbf26f0a096f /Tests/RunCMake/CMP0053
parent9d742defd925e63eefe37e22f61c22bdec49c044 (diff)
downloadCMake-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/CMP0053')
-rw-r--r--Tests/RunCMake/CMP0053/CMP0053-OLD-stderr.txt13
1 files changed, 12 insertions, 1 deletions
diff --git a/Tests/RunCMake/CMP0053/CMP0053-OLD-stderr.txt b/Tests/RunCMake/CMP0053/CMP0053-OLD-stderr.txt
index 836b0ff..2a0ddbaa 100644
--- a/Tests/RunCMake/CMP0053/CMP0053-OLD-stderr.txt
+++ b/Tests/RunCMake/CMP0053/CMP0053-OLD-stderr.txt
@@ -1,2 +1,13 @@
-^called
+^CMake Deprecation Warning at CMP0053-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\)
++
+called
--><--$