diff options
author | Ken Martin <ken.martin@kitware.com> | 2006-05-23 13:11:46 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2006-05-23 13:11:46 (GMT) |
commit | 50d058a3a1ed4fbb1a1df29ae9979d8c9812ceef (patch) | |
tree | 980f4a317110d0903d24e45486a840790833972f /Source/cmMakefileTargetGenerator.cxx | |
parent | 4a2d72d313a0ee9463a6baac7a10ed6610159e38 (diff) | |
download | CMake-50d058a3a1ed4fbb1a1df29ae9979d8c9812ceef.zip CMake-50d058a3a1ed4fbb1a1df29ae9979d8c9812ceef.tar.gz CMake-50d058a3a1ed4fbb1a1df29ae9979d8c9812ceef.tar.bz2 |
ENH: always compile progress
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 16 |
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; |