summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileExecutableTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-03-16 20:55:58 (GMT)
committerBrad King <brad.king@kitware.com>2009-03-16 20:55:58 (GMT)
commit493f88ce553ec7e39db83bd1bdf5c0896420c52d (patch)
tree12ff5faa0dff23b7e0b667a30da972d0d7673744 /Source/cmMakefileExecutableTargetGenerator.cxx
parent49dec94f54c6c896b2d42f6bea0b36bd429693c9 (diff)
downloadCMake-493f88ce553ec7e39db83bd1bdf5c0896420c52d.zip
CMake-493f88ce553ec7e39db83bd1bdf5c0896420c52d.tar.gz
CMake-493f88ce553ec7e39db83bd1bdf5c0896420c52d.tar.bz2
ENH: Allow projects to disable per-rule echo lines
This creates global property RULE_MESSAGES which can be set to disbale per-rule progress and action reporting. On Windows, these reports may cause a noticable delay due to the cost of starting extra processes. This feature will allow scripted builds to avoid the cost since they do not need detailed information anyway. This replaces the RULE_PROGRESS property created earlier as it is more complete. See issue #8726.
Diffstat (limited to 'Source/cmMakefileExecutableTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileExecutableTargetGenerator.cxx17
1 files changed, 10 insertions, 7 deletions
diff --git a/Source/cmMakefileExecutableTargetGenerator.cxx b/Source/cmMakefileExecutableTargetGenerator.cxx
index a96d297..acffb8a 100644
--- a/Source/cmMakefileExecutableTargetGenerator.cxx
+++ b/Source/cmMakefileExecutableTargetGenerator.cxx
@@ -189,13 +189,16 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink)
return;
}
- // Add the link message.
- std::string buildEcho = "Linking ";
- buildEcho += linkLanguage;
- buildEcho += " executable ";
- buildEcho += targetOutPath;
- this->LocalGenerator->AppendEcho(commands, buildEcho.c_str(),
- cmLocalUnixMakefileGenerator3::EchoLink);
+ if(!this->NoRuleMessages)
+ {
+ // Add the link message.
+ std::string buildEcho = "Linking ";
+ buildEcho += linkLanguage;
+ buildEcho += " executable ";
+ buildEcho += targetOutPath;
+ this->LocalGenerator->AppendEcho(commands, buildEcho.c_str(),
+ cmLocalUnixMakefileGenerator3::EchoLink);
+ }
// Build a list of compiler flags and linker flags.
std::string flags;