summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-10-25 07:34:57 -0400
committerBrad King <brad.king@kitware.com>2018-10-25 07:34:57 -0400
commit82db7cbed83fc17de8dcbb389cf5553789a2e256 (patch)
tree6357d4774e8b5148487249317d44079be0b722ca
parent9f7b60969009c643dfa411b5f786b855078a6541 (diff)
parente178bd46cbf2ddaf2e4d0e913986d4ff2320e22c (diff)
downloadcmake-82db7cbed83fc17de8dcbb389cf5553789a2e256.tar.gz
Merge branch 'cmake-gui-vs-open-space' into release-3.13
Merge-request: !2524
-rw-r--r--Source/cmGlobalVisualStudioGenerator.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx
index 4aa52c35c8..da3daf86b2 100644
--- a/Source/cmGlobalVisualStudioGenerator.cxx
+++ b/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();
}