CMake/Tests/RunCMake/message
Stephen Kelly 0a4af0735f cmake: Issue message independent of cmMakefile definition
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.
2016-06-12 18:38:33 +02:00
..
CMakeLists.txt
RunCMakeTest.cmake cmake: Issue message independent of cmMakefile definition 2016-06-12 18:38:33 +02:00
defaultmessage-result.txt Explicitly enable author (dev) warnings by default. 2015-12-01 09:35:53 -05:00
defaultmessage-stderr.txt Explicitly enable deprecated warnings by default. 2015-12-01 10:22:51 -05:00
defaultmessage.cmake Explicitly enable author (dev) warnings by default. 2015-12-01 09:35:53 -05:00
errormessage_deprecated-result.txt Add -Werror and -Wno-error command-line options 2016-01-12 14:02:51 -05:00
errormessage_deprecated-stderr.txt Add -Werror and -Wno-error command-line options 2016-01-12 14:02:51 -05:00
errormessage_deprecated.cmake Add -Werror and -Wno-error command-line options 2016-01-12 14:02:51 -05:00
errormessage_dev-result.txt Add -Werror and -Wno-error command-line options 2016-01-12 14:02:51 -05:00
errormessage_dev-stderr.txt Add -Werror and -Wno-error command-line options 2016-01-12 14:02:51 -05:00
errormessage_dev.cmake Add -Werror and -Wno-error command-line options 2016-01-12 14:02:51 -05:00
message-internal-warning-stderr.txt cmake: Issue message independent of cmMakefile definition 2016-06-12 18:38:33 +02:00
message-internal-warning.cmake cmake: Issue message independent of cmMakefile definition 2016-06-12 18:38:33 +02:00
nomessage-internal-warning-stderr.txt cmake: Issue message independent of cmMakefile definition 2016-06-12 18:38:33 +02:00
nomessage-internal-warning.cmake cmake: Issue message independent of cmMakefile definition 2016-06-12 18:38:33 +02:00
nomessage-result.txt
nomessage.cmake Explicitly enable deprecated warnings by default. 2015-12-01 10:22:51 -05:00
warnmessage-result.txt
warnmessage-stderr.txt Make message suppression more consistent. 2015-11-30 15:00:08 -05:00
warnmessage.cmake Make message suppression more consistent. 2015-11-30 15:00:08 -05:00