summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0115
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-06-07 14:38:25 (GMT)
committerBrad King <brad.king@kitware.com>2023-06-07 18:31:50 (GMT)
commit9ba9b6c658dd086129687e0345e5968b60051ca7 (patch)
tree684b7fa4fcce59223f1e394aa2fd24d04e836ec9 /Tests/RunCMake/CMP0115
parentbb08c70e019f50a6031028b9ea27a1e9bb75430f (diff)
downloadCMake-9ba9b6c658dd086129687e0345e5968b60051ca7.zip
CMake-9ba9b6c658dd086129687e0345e5968b60051ca7.tar.gz
CMake-9ba9b6c658dd086129687e0345e5968b60051ca7.tar.bz2
Add deprecation warnings for policies CMP0120 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.20 and below to encourage projects to port away from setting policies to OLD.
Diffstat (limited to 'Tests/RunCMake/CMP0115')
-rw-r--r--Tests/RunCMake/CMP0115/CMP0115-OLD-stderr.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/Tests/RunCMake/CMP0115/CMP0115-OLD-stderr.txt b/Tests/RunCMake/CMP0115/CMP0115-OLD-stderr.txt
index 67d00f7..3472f33 100644
--- a/Tests/RunCMake/CMP0115/CMP0115-OLD-stderr.txt
+++ b/Tests/RunCMake/CMP0115/CMP0115-OLD-stderr.txt
@@ -1,4 +1,13 @@
-^CMake Error at CMP0115\.cmake:[0-9]+ \(add_executable\):
+^CMake Deprecation Warning at CMakeLists\.txt:[0-9]+ \(cmake_minimum_required\):
+ The OLD behavior for policy CMP0115 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\.
++
+CMake Error at CMP0115\.cmake:[0-9]+ \(add_executable\):
Cannot find source file:
noexist