summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio15Generator.h
diff options
context:
space:
mode:
authorIyyappa Murugandi <iyyappam@microsoft.com>2016-12-15 02:53:30 (GMT)
committerBrad King <brad.king@kitware.com>2016-12-16 14:58:43 (GMT)
commitc93e85d87e683e4c20e5f29726889279aea9d921 (patch)
tree9a34055de359b449c3fdec52f1326ad7a0b41c08 /Source/cmGlobalVisualStudio15Generator.h
parent18c8278b622e4cb9b155c5dc4ceac93322bed85f (diff)
downloadCMake-c93e85d87e683e4c20e5f29726889279aea9d921.zip
CMake-c93e85d87e683e4c20e5f29726889279aea9d921.tar.gz
CMake-c93e85d87e683e4c20e5f29726889279aea9d921.tar.bz2
VS: Use Visual Studio Installer to locate VS 2017
VS 2017 and later may no longer populate the Windows Registry entries CMake has traditionally used to find the VS installations. This is because VS now supports having multiple installations of the same version. The Visual Studio Installer tool provides a COM interface we can query to locate installations.
Diffstat (limited to 'Source/cmGlobalVisualStudio15Generator.h')
-rw-r--r--Source/cmGlobalVisualStudio15Generator.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio15Generator.h b/Source/cmGlobalVisualStudio15Generator.h
index 59eb11a..781b41e 100644
--- a/Source/cmGlobalVisualStudio15Generator.h
+++ b/Source/cmGlobalVisualStudio15Generator.h
@@ -9,6 +9,7 @@
#include <string>
#include "cmGlobalVisualStudio14Generator.h"
+#include "cmVSSetupHelper.h"
class cmGlobalGeneratorFactory;
class cmake;
@@ -39,7 +40,11 @@ protected:
// of the toolset is installed
bool IsWindowsStoreToolsetInstalled() const;
+ std::string FindMSBuildCommand() CM_OVERRIDE;
+ std::string FindDevEnvCommand() CM_OVERRIDE;
+
private:
class Factory;
+ mutable cmVSSetupAPIHelper vsSetupAPIHelper;
};
#endif