summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/target_link_libraries
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-10-12 15:52:35 (GMT)
committerBrad King <brad.king@kitware.com>2022-10-12 16:40:52 (GMT)
commitc0e8bb5150b98a8003181b32396d0f3609bc6fce (patch)
treefce1f1f55cd951ba8db6c86359e123b244856c40 /Tests/RunCMake/target_link_libraries
parentf6af01b53d2531167d7bb11ef53df889735bf97b (diff)
downloadCMake-c0e8bb5150b98a8003181b32396d0f3609bc6fce.zip
CMake-c0e8bb5150b98a8003181b32396d0f3609bc6fce.tar.gz
CMake-c0e8bb5150b98a8003181b32396d0f3609bc6fce.tar.bz2
Add deprecation warnings for policies CMP0108 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.18 and below to encourage projects to port away from setting policies to OLD.
Diffstat (limited to 'Tests/RunCMake/target_link_libraries')
-rw-r--r--Tests/RunCMake/target_link_libraries/CMP0108-OLD-self-link-stderr.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/target_link_libraries/CMP0108-OLD-self-link-stderr.txt b/Tests/RunCMake/target_link_libraries/CMP0108-OLD-self-link-stderr.txt
new file mode 100644
index 0000000..07e9a9f
--- /dev/null
+++ b/Tests/RunCMake/target_link_libraries/CMP0108-OLD-self-link-stderr.txt
@@ -0,0 +1,10 @@
+^CMake Deprecation Warning at CMP0108-OLD-self-link.cmake:[0-9]+ \(cmake_policy\):
+ The OLD behavior for policy CMP0108 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\)$