Переглянути джерело

BUG: undo last bug fix because it breaks cmake, rebuild_cache on ParaView gets tons of errors about not being able to create the bin directory

Bill Hoffman 21 роки тому
батько
коміт
32ccf38c58
1 змінених файлів з 1 додано та 7 видалено
  1. 1 7
      Source/kwsys/SystemTools.cxx

+ 1 - 7
Source/kwsys/SystemTools.cxx

@@ -235,15 +235,9 @@ const char* SystemTools::GetExecutableExtension()
 
 bool SystemTools::MakeDirectory(const char* path)
 {
-  if(SystemTools::FileIsDirectory(path))
-    {
-    return true;
-    }
-
-  // Do not make a directory on top of a file.
   if(SystemTools::FileExists(path))
     {
-    return false;
+    return true;
     }
   kwsys_stl::string dir = path;
   if(dir.size() == 0)