summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/Make
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-02-01 14:16:50 -0500
committerBrad King <brad.king@kitware.com>2023-02-01 17:01:38 -0500
commit1ff14d584c8c8c45b2b0cc7ddfbaf908e10acb95 (patch)
tree9f650ecdfadf61bd153583e0b2f5f7d710c01988 /Tests/RunCMake/Make
parent641dd4ee73c11a2a7b9d76b5ba0b1eeb08323e81 (diff)
downloadcmake-1ff14d584c8c8c45b2b0cc7ddfbaf908e10acb95.tar.gz
Add deprecation warnings for policies CMP0114 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.19 and below to encourage projects to port away from setting policies to OLD.
Diffstat (limited to 'Tests/RunCMake/Make')
-rw-r--r--Tests/RunCMake/Make/CMP0113-OLD-stderr.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/Make/CMP0113-OLD-stderr.txt b/Tests/RunCMake/Make/CMP0113-OLD-stderr.txt
new file mode 100644
index 0000000000..42742f73e4
--- /dev/null
+++ b/Tests/RunCMake/Make/CMP0113-OLD-stderr.txt
@@ -0,0 +1,10 @@
+^CMake Deprecation Warning at CMP0113-OLD.cmake:[0-9]+ \(cmake_policy\):
+ The OLD behavior for policy CMP0113 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\)$