diff options
author | Brad King <brad.king@kitware.com> | 2009-03-16 20:55:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-03-16 20:55:58 (GMT) |
commit | 493f88ce553ec7e39db83bd1bdf5c0896420c52d (patch) | |
tree | 12ff5faa0dff23b7e0b667a30da972d0d7673744 /Source/cmMakefileExecutableTargetGenerator.cxx | |
parent | 49dec94f54c6c896b2d42f6bea0b36bd429693c9 (diff) | |
download | CMake-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.cxx | 17 |
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; |