diff options
author | Brad King <brad.king@kitware.com> | 2021-02-10 14:01:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-02-10 14:25:32 (GMT) |
commit | 58ea0d12558b5607e81b1dfab1528bdf45393b3d (patch) | |
tree | f96e055f5e4d117e347627d4621742860c91fb52 /Tests/RunCMake/BundleUtilities/CMP0080-OLD-stderr.txt | |
parent | 693f4c70ffc8422bf053cae3e685d0f2620ddf7a (diff) | |
download | CMake-58ea0d12558b5607e81b1dfab1528bdf45393b3d.zip CMake-58ea0d12558b5607e81b1dfab1528bdf45393b3d.tar.gz CMake-58ea0d12558b5607e81b1dfab1528bdf45393b3d.tar.bz2 |
Add deprecation warnings for policies CMP0081 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.13 and below to encourage projects to port
away from setting policies to OLD.
Diffstat (limited to 'Tests/RunCMake/BundleUtilities/CMP0080-OLD-stderr.txt')
-rw-r--r-- | Tests/RunCMake/BundleUtilities/CMP0080-OLD-stderr.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/BundleUtilities/CMP0080-OLD-stderr.txt b/Tests/RunCMake/BundleUtilities/CMP0080-OLD-stderr.txt new file mode 100644 index 0000000..2ff5d60 --- /dev/null +++ b/Tests/RunCMake/BundleUtilities/CMP0080-OLD-stderr.txt @@ -0,0 +1,10 @@ +^CMake Deprecation Warning at CMP0080-OLD.cmake:[0-9]+ \(cmake_policy\): + The OLD behavior for policy CMP0080 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\)$ |