summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/MSVCRuntimeLibrary
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-10-08 14:17:59 (GMT)
committerBrad King <brad.king@kitware.com>2021-10-08 16:17:04 (GMT)
commit0f31463c37dd5cafa27df8fd4a0cb161d18f2f0b (patch)
tree7c395c0f7525f93c003b8559f28d5adeab9f85d2 /Tests/RunCMake/MSVCRuntimeLibrary
parent3068ea834ff17bd5d2e8438c1a8d3a6331d10f62 (diff)
downloadCMake-0f31463c37dd5cafa27df8fd4a0cb161d18f2f0b.zip
CMake-0f31463c37dd5cafa27df8fd4a0cb161d18f2f0b.tar.gz
CMake-0f31463c37dd5cafa27df8fd4a0cb161d18f2f0b.tar.bz2
Add deprecation warnings for policies CMP0094 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.15 and below to encourage projects to port away from setting policies to OLD.
Diffstat (limited to 'Tests/RunCMake/MSVCRuntimeLibrary')
-rw-r--r--Tests/RunCMake/MSVCRuntimeLibrary/CMP0091-OLD-stderr.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/MSVCRuntimeLibrary/CMP0091-OLD-stderr.txt b/Tests/RunCMake/MSVCRuntimeLibrary/CMP0091-OLD-stderr.txt
new file mode 100644
index 0000000..3984a78
--- /dev/null
+++ b/Tests/RunCMake/MSVCRuntimeLibrary/CMP0091-OLD-stderr.txt
@@ -0,0 +1,10 @@
+^CMake Deprecation Warning at CMP0091-OLD.cmake:[0-9] \(cmake_policy\):
+ The OLD behavior for policy CMP0091 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\)$