summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Ninja
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/Ninja
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/Ninja')
-rw-r--r--Tests/RunCMake/Ninja/QtAutoMocDeps-stderr.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/Ninja/QtAutoMocDeps-stderr.txt b/Tests/RunCMake/Ninja/QtAutoMocDeps-stderr.txt
new file mode 100644
index 0000000..6024984
--- /dev/null
+++ b/Tests/RunCMake/Ninja/QtAutoMocDeps-stderr.txt
@@ -0,0 +1,8 @@
+^CMake Deprecation Warning at QtSubDir1/CMakeLists\.txt:[0-9]+ \(cmake_policy\):
+ The OLD behavior for policy CMP0116 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\.$