summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/message/RunCMakeTest.cmake
Commit message (Collapse)AuthorAgeFilesLines
* cmake: Issue message independent of cmMakefile definitionStephen Kelly2016-06-121-0/+2
| | | | | | | | | | | | | | | | | The makefile is only used when called by the cmMessageCommand, so inline the use of it there. It otherwise creates an undesirable dependency on cmMakefile for issuing messages in the cmake instance, a violation of the Interface Segregation Principle. https://en.wikipedia.org/wiki/Interface_segregation_principle This also makes it more explicit that the variable definitions only affect the message() command. If an AUTHOR_WARNING is issued for any other reason, it is not affected. To affect that, it is necessary to set the cache variable instead of the regular variable. This is an unfortunate interface quirk, but one which can't be fixed easily now.
* Add -Werror and -Wno-error command-line optionsMichael Scott2016-01-121-1/+5
| | | | | | | | | Expand the -W set of cmake options to include support for the -Werror and -Wno-error format, which is used to control upgrading and downgrading warning and error messages. Implement support for these new formats for the dev and deprecated message types. Add tests and updated documentation for new options.
* Explicitly enable author (dev) warnings by default.Michael Scott2015-12-011-0/+1
| | | | | | | | | 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.
* message: Add a DEPRECATION modeStephen Kelly2013-10-081-0/+5
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.