summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/CMP0053
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-11-01 10:43:25 -0400
committerBrad King <brad.king@kitware.com>2017-11-01 11:46:53 -0400
commita0ec14d36361567e374672e0d115e584548702b8 (patch)
treec4fbff560cce9f0cadf602c73f48cbf26f0a096f /Tests/RunCMake/CMP0053
parent9d742defd925e63eefe37e22f61c22bdec49c044 (diff)
downloadcmake-a0ec14d36361567e374672e0d115e584548702b8.tar.gz
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 836b0ffe92..2a0ddbaafa 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
--><--$