diff options
author | Brad King <brad.king@kitware.com> | 2023-06-07 14:38:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-06-07 18:31:50 (GMT) |
commit | 9ba9b6c658dd086129687e0345e5968b60051ca7 (patch) | |
tree | 684b7fa4fcce59223f1e394aa2fd24d04e836ec9 /Tests/RunCMake/CMP0116/CMP0116-Mixed-stderr.txt | |
parent | bb08c70e019f50a6031028b9ea27a1e9bb75430f (diff) | |
download | CMake-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/CMP0116/CMP0116-Mixed-stderr.txt')
-rw-r--r-- | Tests/RunCMake/CMP0116/CMP0116-Mixed-stderr.txt | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Tests/RunCMake/CMP0116/CMP0116-Mixed-stderr.txt b/Tests/RunCMake/CMP0116/CMP0116-Mixed-stderr.txt index 10e83a9..930dd3c 100644 --- a/Tests/RunCMake/CMP0116/CMP0116-Mixed-stderr.txt +++ b/Tests/RunCMake/CMP0116/CMP0116-Mixed-stderr.txt @@ -1,4 +1,15 @@ -^CMake Warning \(dev\) at CMP0116-Mixed\.cmake:1 \(add_custom_command\): +^CMake Deprecation Warning at CMP0116-Mixed\.cmake:[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\. +Call Stack \(most recent call first\): + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Warning \(dev\) at CMP0116-Mixed\.cmake:1 \(add_custom_command\): Policy CMP0116 is not set: Ninja generators transform DEPFILEs from add_custom_command\(\)\. Run "cmake --help-policy CMP0116" for policy details\. Use the cmake_policy command to set the policy and suppress this |