summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-06-27 18:26:35 (GMT)
committerKen Martin <ken.martin@kitware.com>2006-06-27 18:26:35 (GMT)
commitdcbb4e446170d7db6d24ab5eb08c62e9fc41fb03 (patch)
treef720ff985fdeac67e0e05f860e18c934f4be1839 /Source/cmLocalUnixMakefileGenerator3.cxx
parentbec28bb03b0a7cbed3d984fdf52ed5a85e101f85 (diff)
downloadCMake-dcbb4e446170d7db6d24ab5eb08c62e9fc41fb03.zip
CMake-dcbb4e446170d7db6d24ab5eb08c62e9fc41fb03.tar.gz
CMake-dcbb4e446170d7db6d24ab5eb08c62e9fc41fb03.tar.bz2
COMP: warning fix
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx37
1 files changed, 18 insertions, 19 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx
index 03311b6..3f5be33 100644
--- a/Source/cmLocalUnixMakefileGenerator3.cxx
+++ b/Source/cmLocalUnixMakefileGenerator3.cxx
@@ -1448,25 +1448,26 @@ void cmLocalUnixMakefileGenerator3
std::string progressDir = this->Makefile->GetHomeOutputDirectory();
progressDir += cmake::GetCMakeFilesDirectory();
- cmOStringStream progCmd;
- progCmd << "$(CMAKE_COMMAND) -E cmake_progress_start "; // # src files
- progCmd << this->Convert(progressDir.c_str(),
- cmLocalGenerator::FULL,
- cmLocalGenerator::SHELL);
- cmGlobalUnixMakefileGenerator3 *gg =
- static_cast<cmGlobalUnixMakefileGenerator3*>(this->GlobalGenerator);
- int n = gg->GetNumberOfSourceFiles();
- if(n > 100)
- {
- n = 100;
- }
- if (this->Parent)
{
- n = 0;
+ cmOStringStream progCmd;
+ progCmd << "$(CMAKE_COMMAND) -E cmake_progress_start "; // # src files
+ progCmd << this->Convert(progressDir.c_str(),
+ cmLocalGenerator::FULL,
+ cmLocalGenerator::SHELL);
+ cmGlobalUnixMakefileGenerator3 *gg =
+ static_cast<cmGlobalUnixMakefileGenerator3*>(this->GlobalGenerator);
+ int n = gg->GetNumberOfSourceFiles();
+ if(n > 100)
+ {
+ n = 100;
+ }
+ if (this->Parent)
+ {
+ n = 0;
+ }
+ progCmd << " " << n;
+ commands.push_back(progCmd.str());
}
- progCmd << " " << n;
- commands.push_back(progCmd.str());
-
std::string mf2Dir = cmake::GetCMakeFilesDirectoryPostSlash();
mf2Dir += "Makefile2";
commands.push_back(this->GetRecursiveMakeCall(mf2Dir.c_str(),
@@ -1476,8 +1477,6 @@ void cmLocalUnixMakefileGenerator3
this->Makefile->GetStartOutputDirectory());
if (!this->Parent)
{
- std::string progressDir = this->Makefile->GetHomeOutputDirectory();
- progressDir += cmake::GetCMakeFilesDirectory();
cmOStringStream progCmd;
progCmd << "$(CMAKE_COMMAND) -E cmake_progress_start "; // # 0
progCmd << this->Convert(progressDir.c_str(),