diff options
author | Michael Ensslin <michael@ensslin.cc> | 2015-07-10 16:14:47 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-07-14 17:57:58 (GMT) |
commit | 1d3984780df87c6963b0aae1c392a570c890161b (patch) | |
tree | 0630d92de77f41c12aa262f88e77c4d47bfbd4ac /Source/cmGlobalUnixMakefileGenerator3.cxx | |
parent | d560b46f5232f84476d68d96d44e5e755d391090 (diff) | |
download | CMake-1d3984780df87c6963b0aae1c392a570c890161b.zip CMake-1d3984780df87c6963b0aae1c392a570c890161b.tar.gz CMake-1d3984780df87c6963b0aae1c392a570c890161b.tar.bz2 |
Makefile: Optionally disable target completion messages in build output
Add a TARGET_MESSAGES property to control whether Makefile targets print
the "Built target " completion messages. Default to ON to preserve
existing behavior.
Diffstat (limited to 'Source/cmGlobalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmGlobalUnixMakefileGenerator3.cxx | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx index c5fca91..edf2705 100644 --- a/Source/cmGlobalUnixMakefileGenerator3.cxx +++ b/Source/cmGlobalUnixMakefileGenerator3.cxx @@ -801,8 +801,20 @@ cmGlobalUnixMakefileGenerator3 } progress.Arg = progressArg.str(); } - lg->AppendEcho(commands, "Built target " + name, - cmLocalUnixMakefileGenerator3::EchoNormal, &progress); + + bool targetMessages = true; + if (const char* tgtMsg = this->GetCMakeInstance() + ->GetState() + ->GetGlobalProperty("TARGET_MESSAGES")) + { + targetMessages = cmSystemTools::IsOn(tgtMsg); + } + + if (targetMessages) + { + lg->AppendEcho(commands, "Built target " + name, + cmLocalUnixMakefileGenerator3::EchoNormal, &progress); + } this->AppendGlobalTargetDepends(depends, gtarget); lg->WriteMakeRule(ruleFileStream, "All Build rule for target.", |