Sfoglia il codice sorgente

Merge topic 'cmake-gui-vs-open-space'

e178bd46cb cmake-gui: Fix "Open Project" for VS IDE with space in path

Acked-by: Kitware Robot <[email protected]>
Merge-request: !2524
Brad King 7 anni fa
parent
commit
8cabaaf054
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      Source/cmGlobalVisualStudioGenerator.cxx

+ 3 - 2
Source/cmGlobalVisualStudioGenerator.cxx

@@ -878,12 +878,13 @@ bool cmGlobalVisualStudioGenerator::Open(const std::string& bindir,
                                          const std::string& projectName,
                                          bool dryRun)
 {
-  std::string buildDir = cmSystemTools::ConvertToOutputPath(bindir);
-  std::string sln = buildDir + "\\" + projectName + ".sln";
+  std::string sln = bindir + "/" + projectName + ".sln";
 
   if (dryRun) {
     return cmSystemTools::FileExists(sln, true);
   }
 
+  sln = cmSystemTools::ConvertToOutputPath(sln);
+
   return std::async(std::launch::async, OpenSolution, sln).get();
 }