summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0042
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/CMP0042
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/CMP0042')
-rw-r--r--Tests/RunCMake/CMP0042/CMP0042-OLD-result.txt1
-rw-r--r--Tests/RunCMake/CMP0042/CMP0042-OLD-stderr.txt10
2 files changed, 10 insertions, 1 deletions
diff --git a/Tests/RunCMake/CMP0042/CMP0042-OLD-result.txt b/Tests/RunCMake/CMP0042/CMP0042-OLD-result.txt
deleted file mode 100644
index 573541a..0000000
--- a/Tests/RunCMake/CMP0042/CMP0042-OLD-result.txt
+++ /dev/null
@@ -1 +0,0 @@
-0
diff --git a/Tests/RunCMake/CMP0042/CMP0042-OLD-stderr.txt b/Tests/RunCMake/CMP0042/CMP0042-OLD-stderr.txt
new file mode 100644
index 0000000..9d1488d
--- /dev/null
+++ b/Tests/RunCMake/CMP0042/CMP0042-OLD-stderr.txt
@@ -0,0 +1,10 @@
+^CMake Deprecation Warning at CMP0042-OLD.cmake:2 \(cmake_policy\):
+ The OLD behavior for policy CMP0042 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\)$