diff options
author | Brad King <brad.king@kitware.com> | 2023-10-03 16:09:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-10-03 21:21:47 (GMT) |
commit | 86d910ab73c83a949220ca7f0388f7aa5a32aa3c (patch) | |
tree | cfcafdc47bcef4a49bfffbb82d2a12e194796489 /Tests/RunCMake/find_path | |
parent | 4459d25c4adb117ceda5ab368d40fbc55172895d (diff) | |
download | CMake-86d910ab73c83a949220ca7f0388f7aa5a32aa3c.zip CMake-86d910ab73c83a949220ca7f0388f7aa5a32aa3c.tar.gz CMake-86d910ab73c83a949220ca7f0388f7aa5a32aa3c.tar.bz2 |
Add deprecation warnings for policies CMP0126 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.21 and below to encourage projects to port
away from setting policies to OLD.
Diffstat (limited to 'Tests/RunCMake/find_path')
-rw-r--r-- | Tests/RunCMake/find_path/NO_CACHE-stderr.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/find_path/NO_CACHE-stderr.txt b/Tests/RunCMake/find_path/NO_CACHE-stderr.txt new file mode 100644 index 0000000..6da353b --- /dev/null +++ b/Tests/RunCMake/find_path/NO_CACHE-stderr.txt @@ -0,0 +1,10 @@ +^CMake Deprecation Warning at NO_CACHE\.cmake:[0-9]+ \(cmake_policy\): + The OLD behavior for policy CMP0125 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\) |