diff options
author | Stephen Kelly <steveire@gmail.com> | 2016-06-12 16:38:33 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2016-06-12 16:38:33 (GMT) |
commit | 0a4af0735f2aeec74a723dd6af31db585f1b664e (patch) | |
tree | bf4ab5b590350d3f2203de3b797897ffb37b6596 /Source/cmFindFileCommand.h | |
parent | d6e99fa8345f07a72308b8b33f4a31aa7fe9a0fd (diff) | |
download | CMake-0a4af0735f2aeec74a723dd6af31db585f1b664e.zip CMake-0a4af0735f2aeec74a723dd6af31db585f1b664e.tar.gz CMake-0a4af0735f2aeec74a723dd6af31db585f1b664e.tar.bz2 |
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.
Diffstat (limited to 'Source/cmFindFileCommand.h')
0 files changed, 0 insertions, 0 deletions