summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/BundleUtilities/CMP0080-OLD-stderr.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-02-10 14:01:04 (GMT)
committerBrad King <brad.king@kitware.com>2021-02-10 14:25:32 (GMT)
commit58ea0d12558b5607e81b1dfab1528bdf45393b3d (patch)
treef96e055f5e4d117e347627d4621742860c91fb52 /Tests/RunCMake/BundleUtilities/CMP0080-OLD-stderr.txt
parent693f4c70ffc8422bf053cae3e685d0f2620ddf7a (diff)
downloadCMake-58ea0d12558b5607e81b1dfab1528bdf45393b3d.zip
CMake-58ea0d12558b5607e81b1dfab1528bdf45393b3d.tar.gz
CMake-58ea0d12558b5607e81b1dfab1528bdf45393b3d.tar.bz2
Add deprecation warnings for policies CMP0081 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.13 and below to encourage projects to port away from setting policies to OLD.
Diffstat (limited to 'Tests/RunCMake/BundleUtilities/CMP0080-OLD-stderr.txt')
-rw-r--r--Tests/RunCMake/BundleUtilities/CMP0080-OLD-stderr.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/BundleUtilities/CMP0080-OLD-stderr.txt b/Tests/RunCMake/BundleUtilities/CMP0080-OLD-stderr.txt
new file mode 100644
index 0000000..2ff5d60
--- /dev/null
+++ b/Tests/RunCMake/BundleUtilities/CMP0080-OLD-stderr.txt
@@ -0,0 +1,10 @@
+^CMake Deprecation Warning at CMP0080-OLD.cmake:[0-9]+ \(cmake_policy\):
+ The OLD behavior for policy CMP0080 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\)$