diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-12-04 22:28:35 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-12-04 22:28:35 (GMT) |
commit | 11084af42361ab4db3347dd35d33e169dae5fdf7 (patch) | |
tree | 38453200d03808737699b9fd4e655104dab7b3b0 /Source | |
parent | 97c71d0ab13622405af7bbae2b1747d8f385739a (diff) | |
download | CMake-11084af42361ab4db3347dd35d33e169dae5fdf7.zip CMake-11084af42361ab4db3347dd35d33e169dae5fdf7.tar.gz CMake-11084af42361ab4db3347dd35d33e169dae5fdf7.tar.bz2 |
ENH: remove /tmp_mnt from all paths in convert to unix slashes
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmSystemTools.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index f72992c..903e31c 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -486,6 +486,13 @@ const char *cmSystemTools::ConvertToUnixSlashes(std::string& path) { path = path.substr(0, path.size()-1); } + // 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); + } + return path.c_str(); } |