summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileTargetGenerator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileTargetGenerator.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx
index 69a58d3..1f1bf6e 100644
--- a/Source/cmMakefileTargetGenerator.cxx
+++ b/Source/cmMakefileTargetGenerator.cxx
@@ -381,6 +381,22 @@ cmMakefileTargetGenerator
this->LocalGenerator->AppendEcho(commands, buildEcho.c_str(),
cmLocalUnixMakefileGenerator3::EchoBuild);
+ // add in a progress call if needed
+ cmGlobalUnixMakefileGenerator3* gg =
+ static_cast<cmGlobalUnixMakefileGenerator3*>(this->GlobalGenerator);
+ int prog = gg->ShouldAddProgressRule();
+ if (prog)
+ {
+ cmOStringStream progCmd;
+ progCmd << "$(CMAKE_COMMAND) -E cmake_progress_report ";
+ progCmd << this->Makefile->GetHomeOutputDirectory();
+ progCmd << "/CMakeFiles ";
+ progCmd << prog;
+ commands.push_back(progCmd.str());
+ this->LocalGenerator->ProgressFiles[this->Target->GetName()].
+ push_back(prog);
+ }
+
// Construct the compile rules.
std::string compileRuleVar = "CMAKE_";
compileRuleVar += lang;