From 577f721fb70bbf6c29c40d5f10d4319370ccb1f8 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 12 Jan 2017 11:25:14 -0500 Subject: VS: Fix detection of VS 2017 installation with WindowsStore Fix logic in cmVSSetupAPIHelper::IsVS2017Installed to work correctly on repeat calls. Closes: #16549 --- Source/cmVSSetupHelper.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/cmVSSetupHelper.cxx b/Source/cmVSSetupHelper.cxx index d675a2c..2091b5c 100644 --- a/Source/cmVSSetupHelper.cxx +++ b/Source/cmVSSetupHelper.cxx @@ -76,6 +76,8 @@ bool cmVSSetupAPIHelper::IsVS2017Installed() bool ret = false; if (chosenInstanceInfo.VSInstallLocation.compare(L"") == 0) { ret = EnumerateAndChooseVSInstance(); + } else { + ret = true; } return ret; -- cgit v0.12