summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/message
diff options
context:
space:
mode:
authorMichael Scott <michael.scott250@gmail.com>2015-11-29 13:34:07 (GMT)
committerBrad King <brad.king@kitware.com>2015-12-01 15:22:51 (GMT)
commitaac633d5e5765bb6b51e31364325ae7d916f021c (patch)
treee7cd3773e3936f6af088416645cb6cde7992fc2d /Tests/RunCMake/message
parente8974b62d7883adf100d4c6ad90a0fbf682aaa91 (diff)
downloadCMake-aac633d5e5765bb6b51e31364325ae7d916f021c.zip
CMake-aac633d5e5765bb6b51e31364325ae7d916f021c.tar.gz
CMake-aac633d5e5765bb6b51e31364325ae7d916f021c.tar.bz2
Explicitly enable deprecated warnings by default.
Explicitly enable deprecated warnings by default, via the cmake::GetSuppressDeprecatedWarnings method, which signals suppression is turned off unless the CMake variables are set as required. Add tests and update the documentation for the new functionality.
Diffstat (limited to 'Tests/RunCMake/message')
-rw-r--r--Tests/RunCMake/message/defaultmessage-stderr.txt8
-rw-r--r--Tests/RunCMake/message/nomessage.cmake2
2 files changed, 9 insertions, 1 deletions
diff --git a/Tests/RunCMake/message/defaultmessage-stderr.txt b/Tests/RunCMake/message/defaultmessage-stderr.txt
index 95656ec..dd1b28f 100644
--- a/Tests/RunCMake/message/defaultmessage-stderr.txt
+++ b/Tests/RunCMake/message/defaultmessage-stderr.txt
@@ -1,4 +1,10 @@
-^CMake Warning \(dev\) at defaultmessage.cmake:4 \(message\):
+^CMake Deprecation Warning at defaultmessage.cmake:2 \(message\):
+ This is a deprecation warning
+Call Stack \(most recent call first\):
+ CMakeLists.txt:3 \(include\)
+
+
+CMake Warning \(dev\) at defaultmessage.cmake:4 \(message\):
This is a author warning
Call Stack \(most recent call first\):
CMakeLists.txt:3 \(include\)
diff --git a/Tests/RunCMake/message/nomessage.cmake b/Tests/RunCMake/message/nomessage.cmake
index 582ab4d..78f4769 100644
--- a/Tests/RunCMake/message/nomessage.cmake
+++ b/Tests/RunCMake/message/nomessage.cmake
@@ -1,4 +1,6 @@
+set(CMAKE_WARN_DEPRECATED OFF)
+
message(DEPRECATION "This is not issued")
set(CMAKE_SUPPRESS_DEVELOPER_WARNINGS ON)