summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-12-22 17:24:26 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-12-22 17:24:26 (GMT)
commiteb9fc21543a48d3b842da09d5653d8ca1c58b196 (patch)
tree4770efad715ad9ef4ed76428e86eeccc5da4c6a9 /Source/cmake.cxx
parentdad738eab1872837dc70a68732213150755a2d8c (diff)
downloadCMake-eb9fc21543a48d3b842da09d5653d8ca1c58b196.zip
CMake-eb9fc21543a48d3b842da09d5653d8ca1c58b196.tar.gz
CMake-eb9fc21543a48d3b842da09d5653d8ca1c58b196.tar.bz2
ENH: add support for relative paths in makefiles
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index b1e2eea..bba8a38 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -275,6 +275,8 @@ void cmake::SetArgs(const std::vector<std::string>& args)
{
directoriesSet = true;
std::string path = arg.substr(2);
+ path = cmSystemTools::CollapseFullPath(path.c_str());
+ cmSystemTools::ConvertToUnixSlashes(path);
this->SetHomeDirectory(path.c_str());
}
else if(arg.find("-S",0) == 0)
@@ -282,18 +284,24 @@ void cmake::SetArgs(const std::vector<std::string>& args)
directoriesSet = true;
m_Local = true;
std::string path = arg.substr(2);
+ path = cmSystemTools::CollapseFullPath(path.c_str());
+ cmSystemTools::ConvertToUnixSlashes(path);
this->SetStartDirectory(path.c_str());
}
else if(arg.find("-O",0) == 0)
{
directoriesSet = true;
std::string path = arg.substr(2);
+ path = cmSystemTools::CollapseFullPath(path.c_str());
+ cmSystemTools::ConvertToUnixSlashes(path);
this->SetStartOutputDirectory(path.c_str());
}
else if(arg.find("-B",0) == 0)
{
directoriesSet = true;
std::string path = arg.substr(2);
+ path = cmSystemTools::CollapseFullPath(path.c_str());
+ cmSystemTools::ConvertToUnixSlashes(path);
this->SetHomeOutputDirectory(path.c_str());
}
else if(arg.find("-V",0) == 0)