summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-09-18 15:05:01 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-09-18 15:05:01 (GMT)
commite15ebb625508fc9b71b0b4f0d52b3ea0feef3a85 (patch)
treed64fa743526cada3acc712609329c67cb6ddd0c0
parent54584d1cb94b5cc50a7441b0390d9a4c594fb820 (diff)
downloadCMake-e15ebb625508fc9b71b0b4f0d52b3ea0feef3a85.zip
CMake-e15ebb625508fc9b71b0b4f0d52b3ea0feef3a85.tar.gz
CMake-e15ebb625508fc9b71b0b4f0d52b3ea0feef3a85.tar.bz2
ENH: remove /tmp_mnt in collapse full path
-rw-r--r--Source/kwsys/SystemTools.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index 576de34..285f792 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -692,7 +692,6 @@ void SystemTools::ConvertToUnixSlashes(kwsys_std::string& path)
}
// if there is a /tmp_mnt in a path get rid of it!
- // stupid sgi's
if(path.find("/tmp_mnt") == 0)
{
path = path.substr(8);
@@ -1302,6 +1301,11 @@ kwsys_std::string SystemTools::CollapseFullPath(const char* in_relative,
{
newDir = SystemTools::GetCurrentWorkingDirectory();
}
+ // if there is a /tmp_mnt in a path get rid of it!
+ if(newDir.find("/tmp_mnt") == 0)
+ {
+ newDir = newDir.substr(8);
+ }
#endif
// Restore original working directory.