Prechádzať zdrojové kódy

BUG: fix CollapseFullPath so a trailing slash is not added to directories

Bill Hoffman 24 rokov pred
rodič
commit
8e15a1ede7
1 zmenil súbory, kde vykonal 4 pridanie a 0 odobranie
  1. 4 0
      Source/cmSystemTools.cxx

+ 4 - 0
Source/cmSystemTools.cxx

@@ -1250,6 +1250,10 @@ std::string cmSystemTools::CollapseFullPath(const char* in_name)
     {
     dir = cmSystemTools::GetCurrentWorkingDirectory();
     }
+  if(file == "")
+    {
+    return dir;
+    }
   return dir + "/" + file;
 #endif
 }