summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/VisibilityPreset
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-09-17 10:47:46 (GMT)
committerBrad King <brad.king@kitware.com>2018-09-17 18:16:48 (GMT)
commit0c709cb2a214ec37100d38f06e1bbf157d8c4cb8 (patch)
tree19675a36da0dc13a7bd355af6656cf0d257fed15 /Tests/RunCMake/VisibilityPreset
parent333804fa0e12c3df9ef16fec163451cffda52df4 (diff)
downloadCMake-0c709cb2a214ec37100d38f06e1bbf157d8c4cb8.zip
CMake-0c709cb2a214ec37100d38f06e1bbf157d8c4cb8.tar.gz
CMake-0c709cb2a214ec37100d38f06e1bbf157d8c4cb8.tar.bz2
Add deprecation warnings for policies CMP0063 and below
The OLD behaviors of all policies are deprecated, but only by documentation. Add an explicit deprecation diagnostic for some policies to encourage projects to port away from setting policies to OLD.
Diffstat (limited to 'Tests/RunCMake/VisibilityPreset')
-rw-r--r--Tests/RunCMake/VisibilityPreset/CMP0063-OLD-stderr.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/VisibilityPreset/CMP0063-OLD-stderr.txt b/Tests/RunCMake/VisibilityPreset/CMP0063-OLD-stderr.txt
new file mode 100644
index 0000000..34ac57d
--- /dev/null
+++ b/Tests/RunCMake/VisibilityPreset/CMP0063-OLD-stderr.txt
@@ -0,0 +1,10 @@
+^CMake Deprecation Warning at CMP0063-OLD.cmake:[0-9]+ \(cmake_policy\):
+ The OLD behavior for policy CMP0063 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\)$