浏览代码

ENH: remove /tmp_mnt from all paths in convert to unix slashes

Bill Hoffman 24 年之前
父节点
当前提交
11084af423
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      Source/cmSystemTools.cxx

+ 7 - 0
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();
 }