summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-03-30 20:39:03 (GMT)
committerBrad King <brad.king@kitware.com>2006-03-30 20:39:03 (GMT)
commiteb31755eb204e3c7981961442ef80858cb8d4ff5 (patch)
tree73048c448f7561e606e857339be3bfcba9299e07 /Source/cmMakefileTargetGenerator.cxx
parent5a2668b326471874ca69357af831cdcf1575c621 (diff)
downloadCMake-eb31755eb204e3c7981961442ef80858cb8d4ff5.zip
CMake-eb31755eb204e3c7981961442ef80858cb8d4ff5.tar.gz
CMake-eb31755eb204e3c7981961442ef80858cb8d4ff5.tar.bz2
ENH: Implemented VT100 terminal escape sequences. If CMAKE_COLOR_MAKEFILE is set then messages produced by makefiles will be in color if the native tool supports it. This addresses bug#3060.
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileTargetGenerator.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx
index 2f5e120..1f7c17f 100644
--- a/Source/cmMakefileTargetGenerator.cxx
+++ b/Source/cmMakefileTargetGenerator.cxx
@@ -374,7 +374,8 @@ cmMakefileTargetGenerator
buildEcho += lang;
buildEcho += " object ";
buildEcho += relativeObj;
- this->LocalGenerator->AppendEcho(commands, buildEcho.c_str());
+ this->LocalGenerator->AppendEcho(commands, buildEcho.c_str(),
+ cmLocalUnixMakefileGenerator3::EchoBuild);
// Construct the compile rules.
std::string compileRuleVar = "CMAKE_";
@@ -540,7 +541,8 @@ void cmMakefileTargetGenerator::WriteTargetDependRules()
// Write the dependency generation rule.
std::string depEcho = "Scanning dependencies of target ";
depEcho += this->Target->GetName();
- this->LocalGenerator->AppendEcho(commands, depEcho.c_str());
+ this->LocalGenerator->AppendEcho(commands, depEcho.c_str(),
+ cmLocalUnixMakefileGenerator3::EchoDepend);
// Add a command to call CMake to scan dependencies. CMake will
// touch the corresponding depends file after scanning dependencies.
@@ -627,7 +629,9 @@ void cmMakefileTargetGenerator
std::vector<std::string> commands;
std::string preEcho = "Generating ";
preEcho += output;
- this->LocalGenerator->AppendEcho(commands, preEcho.c_str());
+ this->LocalGenerator
+ ->AppendEcho(commands, preEcho.c_str(),
+ cmLocalUnixMakefileGenerator3::EchoGenerate);
this->LocalGenerator->AppendCustomCommand(commands, cc);
// Collect the dependencies.