summaryrefslogtreecommitdiff
path: root/Source/cmake.h
diff options
context:
space:
mode:
authorMichael Scott <michael.scott250@gmail.com>2015-11-08 12:59:27 +0000
committerBrad King <brad.king@kitware.com>2015-12-01 09:35:53 -0500
commit246b0bfbfda9a8f3091fc34fc92816aebaf60ae9 (patch)
tree50d689da4b5cb9993b98466cbebb8577b8bc8376 /Source/cmake.h
parentdeec3a3f06d341cfe0bef4e856b263eff347cc72 (diff)
downloadcmake-246b0bfbfda9a8f3091fc34fc92816aebaf60ae9.tar.gz
Explicitly enable author (dev) warnings by default.
Explicitly enable author warnings by default, via the cmake::GetSuppressDevWarnings method, which signals suppression is turned off unless the CMake variables are set as required. Add test cases for author and deprecated messages displayed by default.
Diffstat (limited to 'Source/cmake.h')
-rw-r--r--Source/cmake.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmake.h b/Source/cmake.h
index 0630daa841..45ac28ebd6 100644
--- a/Source/cmake.h
+++ b/Source/cmake.h
@@ -308,6 +308,12 @@ class cmake
this->SuppressDevWarnings = v;
this->DoSuppressDevWarnings = true;
}
+ /*
+ * Get the state of the suppression of developer (author) warnings.
+ * Returns false, by default, if developer warnings should be shown, true
+ * otherwise.
+ */
+ bool GetSuppressDevWarnings(cmMakefile const* mf = NULL);
/** Display a message to the user. */
void IssueMessage(cmake::MessageType t, std::string const& text,