summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/UseSWIG
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-06-30 13:40:23 (GMT)
committerBrad King <brad.king@kitware.com>2021-06-30 14:07:42 (GMT)
commitd76cb12905df6d76fe3ee5376913e5d61161f71d (patch)
tree50822c45cc0289c01526a538e455a75afc3333d5 /Tests/RunCMake/UseSWIG
parent1a2c8407a7b26cda33e290f73aca93819956ee59 (diff)
downloadCMake-d76cb12905df6d76fe3ee5376913e5d61161f71d.zip
CMake-d76cb12905df6d76fe3ee5376913e5d61161f71d.tar.gz
CMake-d76cb12905df6d76fe3ee5376913e5d61161f71d.tar.bz2
Add deprecation warnings for policies CMP0088 and below
The OLD behaviors of all policies are deprecated, but only by documentation. Add an explicit deprecation diagnostic for policies introduced in CMake 3.14 and below to encourage projects to port away from setting policies to OLD.
Diffstat (limited to 'Tests/RunCMake/UseSWIG')
-rw-r--r--Tests/RunCMake/UseSWIG/CMP0086-OLD-stderr.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/UseSWIG/CMP0086-OLD-stderr.txt b/Tests/RunCMake/UseSWIG/CMP0086-OLD-stderr.txt
new file mode 100644
index 0000000..fca7a73
--- /dev/null
+++ b/Tests/RunCMake/UseSWIG/CMP0086-OLD-stderr.txt
@@ -0,0 +1,10 @@
+^CMake Deprecation Warning at CMP0086-OLD.cmake:[0-9]+ \(cmake_policy\):
+ The OLD behavior for policy CMP0086 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:[0-9]+ \(include\)$