summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/message
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'message-check-types'Craig Scott2019-11-044-0/+31
|\ | | | | | | | | | | | | | | 7b2dd9dedc Refactor: Use added message types in various modules 949a1e120a message: New message types to mark checks performed by CMake Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3689
| * message: New message types to mark checks performed by CMakeAlex Turbov2019-11-024-0/+31
| | | | | | | | | | | | Closes #19638. Co-Authored-By: Craig Scott <craig.scott@crascit.com>
* | Merge topic 'root-dir-assertion-fix'Brad King2019-11-043-0/+15
|\ \ | |/ |/| | | | | | | | | 0692eaf0fe ForceToRelativePath: Fix spurious assertion when local path is root dir Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3976
| * ForceToRelativePath: Fix spurious assertion when local path is root dirCraig Scott2019-11-023-0/+15
| | | | | | Fixes: #19909
* | message: Support logging a context with each messageAlex Turbov2019-10-125-0/+63
| |
* | message: Add new CMAKE_MESSAGE_LOG_LEVEL variableAlex Turbov2019-10-123-0/+20
| |
* | Tests: Message log level tests must fail on unwanted outputCraig Scott2019-10-1210-10/+10
|/ | | | | | The previous regular expressions were allowing output from lower log levels. The tests still pass after these changes but will now catch regressions (previously they would not have).
* CLI: Rename --loglevel to --log-level for naming consistencyCraig Scott2019-10-1015-40/+136
| | | | | | | Other multi-word command line options use hyphens to separate the words, so the --loglevel option introduced in CMake 3.15 was inconsistent in this regard. Rename it to --log-level but still support the original --loglevel name to preserve backward compatibility.
* message(): Control indentation via CMAKE_MESSAGE_INDENTAlex Turbov2019-07-216-0/+65
|
* message(): Add support for log levelsAlex Turbov2019-04-2816-0/+146
| | | | | Relates: #18943 Co-Authored-By: Craig Scott <craig.scott@crascit.com>
* Fix trivial typos in textluzpaz2017-11-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Some are user facing. Found using codespell -q 3 --skip="./Utilities" -I .cmake-whitelist.txt` whereby the whitelist contained: ans dum helpfull emmited emmitted buil iff isnt nto ot pathes substract te todays upto whitespaces
* cmake: Issue message independent of cmMakefile definitionStephen Kelly2016-06-125-0/+25
| | | | | | | | | | | | | | | | | 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-129-9/+21
| | | | | | | | | 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 deprecated warnings by default.Michael Scott2015-12-012-1/+9
| | | | | | | | | | 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.
* Explicitly enable author (dev) warnings by default.Michael Scott2015-12-014-0/+11
| | | | | | | | | 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.
* Make message suppression more consistent.Michael Scott2015-11-303-3/+18
| | | | | | | | | | | | | | | | Make the message suppression more consistent, by adding a check for the message related CMake variables in cmake::IssueMessage, which allows callers of IssueMessage other than the message command to behave as expected. Also added a check for CMAKE_SUPPRESS_DEVELOPER_WARNINGS in the message command to mirror the deprecated message type behaviour. Added a 'force' flag to the cmake::IssueMessage method, to make the message suppression consistent, when setting the message related CMake variables directly in a CMake file. Expand message command tests to cover the AUTHOR_WARNING message type as well.
* RunCMake: Remove unneeded files.Stephen Kelly2015-02-091-1/+0
| | | | | The default expectation of RunCMake tests is empty content, so there is no need to specify it.
* message: Add a DEPRECATION modeStephen Kelly2013-10-0811-0/+30
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.