summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2005-05-13 13:54:30 (GMT)
committerKen Martin <ken.martin@kitware.com>2005-05-13 13:54:30 (GMT)
commit8c651793398848063945ab94e4e5f50c6bd7aaf8 (patch)
tree33f7bb6fbb7c77a523bb4e3bd413ea166152dfed /Source/cmGlobalUnixMakefileGenerator3.cxx
parent9e5315fb5488830543d90da7c72ba012927e7323 (diff)
downloadCMake-8c651793398848063945ab94e4e5f50c6bd7aaf8.zip
CMake-8c651793398848063945ab94e4e5f50c6bd7aaf8.tar.gz
CMake-8c651793398848063945ab94e4e5f50c6bd7aaf8.tar.bz2
ENH: warning fixes and some first steps in cleaning up the convert code
Diffstat (limited to 'Source/cmGlobalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmGlobalUnixMakefileGenerator3.cxx15
1 files changed, 7 insertions, 8 deletions
diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx
index 52838fd..78d36d2 100644
--- a/Source/cmGlobalUnixMakefileGenerator3.cxx
+++ b/Source/cmGlobalUnixMakefileGenerator3.cxx
@@ -193,9 +193,8 @@ void cmGlobalUnixMakefileGenerator3::WriteMainCMakefile()
<< "SET(CMAKE_DEPENDS_GENERATOR \"" << this->GetName() << "\")\n\n";
// for each cmMakefile get its list of dependencies
- unsigned int i;
std::vector<std::string> lfiles;
- for (i = 0; i < m_LocalGenerators.size(); ++i)
+ for (unsigned int i = 0; i < m_LocalGenerators.size(); ++i)
{
lg = static_cast<cmLocalUnixMakefileGenerator3 *>(m_LocalGenerators[i]);
@@ -244,13 +243,13 @@ void cmGlobalUnixMakefileGenerator3::WriteMainCMakefile()
// add in all the directory information files
std::string tmpStr;
- for (i = 0; i < m_LocalGenerators.size(); ++i)
+ for (unsigned int i = 0; i < m_LocalGenerators.size(); ++i)
{
lg = static_cast<cmLocalUnixMakefileGenerator3 *>(m_LocalGenerators[i]);
tmpStr = lg->GetMakefile()->GetStartOutputDirectory();
tmpStr += "/CMakeDirectoryInformation.cmake";
- cmakefileStream
- << " \"" << this->ConvertToHomeRelativePath(tmpStr.c_str()).c_str() << "\"\n";
+ cmakefileStream << " \"" <<
+ lg->Convert(tmpStr.c_str(),cmLocalGenerator::HOME_OUTPUT).c_str() << "\"\n";
}
cmakefileStream << " )\n\n";
@@ -309,8 +308,8 @@ void cmGlobalUnixMakefileGenerator3
iCheckSet.begin();
csIter != iCheckSet.end(); ++csIter)
{
- cmakefileStream
- << " \"" << this->ConvertToHomeRelativePath(csIter->c_str()).c_str() << "\"\n";
+ cmakefileStream << " \"" <<
+ lg->Convert(csIter->c_str(),cmLocalGenerator::HOME_OUTPUT).c_str() << "\"\n";
}
}
cmakefileStream << " )\n";
@@ -511,7 +510,7 @@ cmGlobalUnixMakefileGenerator3
depends.push_back("cmake_check_build_system");
std::string dir = lg->GetMakefile()->GetStartOutputDirectory();
- dir = this->ConvertToHomeRelativeOutputPath(dir.c_str());
+ dir = lg->Convert(dir.c_str(),cmLocalGenerator::HOME_OUTPUT,cmLocalGenerator::MAKEFILE);
localName = dir;
localName += "/directory";