Browse Source

Merge branch 'cmake-gui-vs-open-space' into release-3.13

Merge-request: !2524
Brad King 7 years ago
parent
commit
82db7cbed8
1 changed files with 3 additions and 2 deletions
  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();
 }