summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-09-17 16:54:34 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-10-08 16:11:22 (GMT)
commit509c142a3f5ae4c1aa8dfcb4257c63a9e1edc270 (patch)
treea40f496e40a0d6175e5b6c553ab5c3c004a4bba8 /Source/cmake.cxx
parent40c84683aafc9447a0e17d81a71d061efde84bdb (diff)
downloadCMake-509c142a3f5ae4c1aa8dfcb4257c63a9e1edc270.zip
CMake-509c142a3f5ae4c1aa8dfcb4257c63a9e1edc270.tar.gz
CMake-509c142a3f5ae4c1aa8dfcb4257c63a9e1edc270.tar.bz2
message: Add a DEPRECATION mode
By default, the message is not issued. If CMAKE_ERROR_DEPRECATED is on, the message is fatal. If CMAKE_WARN_DEPRECATED is on, the message is a warning.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 2249323..d2961c0 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -3127,6 +3127,15 @@ void cmake::IssueMessage(cmake::MessageType t, std::string const& text,
{
msg << "CMake Debug Log";
}
+ else if(t == cmake::DEPRECATION_ERROR)
+ {
+ msg << "CMake Deprecation Error";
+ isError = true;
+ }
+ else if (t == cmake::DEPRECATION_WARNING)
+ {
+ msg << "CMake Deprecation Warning";
+ }
else
{
msg << "CMake Warning";