From 11084af42361ab4db3347dd35d33e169dae5fdf7 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 4 Dec 2001 17:28:35 -0500 Subject: [PATCH] ENH: remove /tmp_mnt from all paths in convert to unix slashes --- Source/cmSystemTools.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index f72992ce5..903e31c20 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(); }