summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-01-26 21:24:35 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-01-26 21:24:35 (GMT)
commit5c8c6fa3da9f0e80fad858a4e7c10846a46cce38 (patch)
tree91a5c6a052b03c41ba0c8310a2883f9c8b2dbdbc /Source/cmLocalGenerator.cxx
parentdae3e140ae6936ca376551cbdf77a896049c8dab (diff)
downloadCMake-5c8c6fa3da9f0e80fad858a4e7c10846a46cce38.zip
CMake-5c8c6fa3da9f0e80fad858a4e7c10846a46cce38.tar.gz
CMake-5c8c6fa3da9f0e80fad858a4e7c10846a46cce38.tar.bz2
ENH: Several windows bugs and fixes
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx17
1 files changed, 10 insertions, 7 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index e42520c..d0f92db 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -75,6 +75,7 @@ void cmLocalGenerator::GenerateInstallRules()
}
std::string file = m_Makefile->GetStartOutputDirectory();
+ cmSystemTools::ConvertToUnixSlashes(file);
file += "/cmake_install.cmake";
cmGeneratedFileStream tempFile(file.c_str());
std::ostream& fout = tempFile.GetStream();
@@ -116,6 +117,7 @@ void cmLocalGenerator::GenerateInstallRules()
if (l->second.GetInstallPath() != "")
{
destination = prefix + l->second.GetInstallPath();
+ cmSystemTools::ConvertToUnixSlashes(destination);
const char* dest = destination.c_str();
int type = l->second.GetType();
@@ -129,14 +131,14 @@ void cmLocalGenerator::GenerateInstallRules()
case cmTarget::MODULE_LIBRARY:
fname = libOutPath;
fname += this->GetFullTargetName(l->first.c_str(), l->second);
- files = cmSystemTools::ConvertToOutputPath(fname.c_str()).c_str();
+ files = fname.c_str();
this->AddInstallRule(fout, dest, type, files);
break;
case cmTarget::WIN32_EXECUTABLE:
case cmTarget::EXECUTABLE:
fname = exeOutPath;
fname += this->GetFullTargetName(l->first.c_str(), l->second);
- files = cmSystemTools::ConvertToOutputPath(fname.c_str()).c_str();
+ files = fname.c_str();
this->AddInstallRule(fout, dest, type, files);
break;
case cmTarget::INSTALL_FILES:
@@ -159,7 +161,7 @@ void cmLocalGenerator::GenerateInstallRules()
f = f.substr(binaryPath.length());
}
- files = cmSystemTools::ConvertToOutputPath(i->c_str()).c_str();
+ files = i->c_str();
this->AddInstallRule(fout, dest, type, files);
}
}
@@ -183,7 +185,7 @@ void cmLocalGenerator::GenerateInstallRules()
{
f = f.substr(binaryPath.length());
}
- files = cmSystemTools::ConvertToOutputPath(i->c_str()).c_str();
+ files = i->c_str();
this->AddInstallRule(fout, dest, type, files);
}
}
@@ -203,8 +205,9 @@ void cmLocalGenerator::GenerateInstallRules()
{
std::string odir = mf->GetCurrentOutputDirectory();
odir += "/" + (*i);
- fout << "INCLUDE(" << cmSystemTools::ConvertToOutputPath(odir.c_str())
- << "/cmake_install.cmake)" << std::endl;
+ cmSystemTools::ConvertToUnixSlashes(odir);
+ fout << "INCLUDE(" << odir.c_str()
+ << "/cmake_install.cmake)" << std::endl;
}
fout << std::endl;;
}
@@ -213,7 +216,7 @@ void cmLocalGenerator::GenerateInstallRules()
void cmLocalGenerator::AddInstallRule(std::ostream& fout, const char* dest, int type, const char* files)
{
std::string sfiles = files;
- std::string destination = cmSystemTools::ConvertToOutputPath(dest);
+ std::string destination = dest;
std::string stype;
switch ( type )
{