diff options
author | Michael Scott <michael.scott250@gmail.com> | 2015-11-08 12:59:27 +0000 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-12-01 09:35:53 -0500 |
commit | 246b0bfbfda9a8f3091fc34fc92816aebaf60ae9 (patch) | |
tree | 50d689da4b5cb9993b98466cbebb8577b8bc8376 /Source/cmMessageCommand.cxx | |
parent | deec3a3f06d341cfe0bef4e856b263eff347cc72 (diff) | |
download | cmake-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/cmMessageCommand.cxx')
-rw-r--r-- | Source/cmMessageCommand.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmMessageCommand.cxx b/Source/cmMessageCommand.cxx index 1c65ef7dd0..fd0345d0bb 100644 --- a/Source/cmMessageCommand.cxx +++ b/Source/cmMessageCommand.cxx @@ -43,7 +43,8 @@ bool cmMessageCommand } else if (*i == "AUTHOR_WARNING") { - if (this->Makefile->IsOn("CMAKE_SUPPRESS_DEVELOPER_WARNINGS")) + if (this->Makefile->GetCMakeInstance()->GetSuppressDevWarnings( + this->Makefile)) { return true; } |