summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-02-21 10:56:10 -0500
committerBrad King <brad.king@kitware.com>2019-02-21 11:02:46 -0500
commit02587d80cf6d6250c461c0838180fc222dbce099 (patch)
tree9dcd0d28933528e4a08adfb3ecc4ecbd7ed29eda /Tests
parenteb08e68b77954a4b439ee66b4987789b213d878a (diff)
downloadcmake-02587d80cf6d6250c461c0838180fc222dbce099.tar.gz
Add deprecation warnings for policies CMP0066 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.7 and below to encourage projects to port away from setting policies to OLD.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/try_compile/CMP0066-stderr.txt13
1 files changed, 12 insertions, 1 deletions
diff --git a/Tests/RunCMake/try_compile/CMP0066-stderr.txt b/Tests/RunCMake/try_compile/CMP0066-stderr.txt
index b14e2900e2..0b92dcfc76 100644
--- a/Tests/RunCMake/try_compile/CMP0066-stderr.txt
+++ b/Tests/RunCMake/try_compile/CMP0066-stderr.txt
@@ -12,4 +12,15 @@ CMake Warning \(dev\) at CMP0066.cmake:[0-9]+ \(try_compile\):
test project.
Call Stack \(most recent call first\):
CMakeLists.txt:[0-9]+ \(include\)
-This warning is for project developers. Use -Wno-dev to suppress it.$
+This warning is for project developers. Use -Wno-dev to suppress it.
+*
+CMake Deprecation Warning at CMP0066.cmake:[0-9]+ \(cmake_policy\):
+ The OLD behavior for policy CMP0066 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\)$