BUG: fix to progress for small projects

This commit is contained in:
Ken Martin
2006-05-25 10:55:24 -04:00
parent 60ebc57227
commit 7eba286403
3 changed files with 19 additions and 9 deletions
+3 -1
View File
@@ -1402,7 +1402,9 @@ void cmLocalUnixMakefileGenerator3
progCmd << this->Convert(progressDir.c_str(),
cmLocalGenerator::FULL,
cmLocalGenerator::SHELL);
progCmd << " 100";
cmGlobalUnixMakefileGenerator3 *gg =
static_cast<cmGlobalUnixMakefileGenerator3*>(this->GlobalGenerator);
progCmd << " " << gg->GetNumberOfSourceFiles();
commands.push_back(progCmd.str());
}