summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/project/VersionMax-stderr.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-02-03 15:36:37 (GMT)
committerBrad King <brad.king@kitware.com>2022-02-03 19:13:12 (GMT)
commita9ffded98cb0a8cdfe95bd21069de215810c0b6f (patch)
tree2486966da86e1740b639d9ab5c8700c68e1146df /Tests/RunCMake/project/VersionMax-stderr.txt
parent40107d308f6d7687edbe5e75a77a67b9cb9112aa (diff)
downloadCMake-a9ffded98cb0a8cdfe95bd21069de215810c0b6f.zip
CMake-a9ffded98cb0a8cdfe95bd21069de215810c0b6f.tar.gz
CMake-a9ffded98cb0a8cdfe95bd21069de215810c0b6f.tar.bz2
Add deprecation warnings for policies CMP0097 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.16 and below to encourage projects to port away from setting policies to OLD.
Diffstat (limited to 'Tests/RunCMake/project/VersionMax-stderr.txt')
-rw-r--r--Tests/RunCMake/project/VersionMax-stderr.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/project/VersionMax-stderr.txt b/Tests/RunCMake/project/VersionMax-stderr.txt
new file mode 100644
index 0000000..b789640
--- /dev/null
+++ b/Tests/RunCMake/project/VersionMax-stderr.txt
@@ -0,0 +1,10 @@
+^CMake Deprecation Warning at VersionMax.cmake:[0-9]+ \(cmake_policy\):
+ The OLD behavior for policy CMP0096 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\)$