diff options
author | Iyyappa Murugandi <iyyappam@microsoft.com> | 2016-12-15 02:53:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-12-16 14:58:43 (GMT) |
commit | c93e85d87e683e4c20e5f29726889279aea9d921 (patch) | |
tree | 9a34055de359b449c3fdec52f1326ad7a0b41c08 /Source/cmGlobalVisualStudio10Generator.cxx | |
parent | 18c8278b622e4cb9b155c5dc4ceac93322bed85f (diff) | |
download | CMake-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/cmGlobalVisualStudio10Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio10Generator.cxx | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Source/cmGlobalVisualStudio10Generator.cxx b/Source/cmGlobalVisualStudio10Generator.cxx index dde6e82..e27615a 100644 --- a/Source/cmGlobalVisualStudio10Generator.cxx +++ b/Source/cmGlobalVisualStudio10Generator.cxx @@ -425,20 +425,6 @@ std::string cmGlobalVisualStudio10Generator::FindMSBuildCommand() } } - // Search where VS15Preview places it. - mskey = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\SxS\\VS7;"; - mskey += this->GetIDEVersion(); - if (cmSystemTools::ReadRegistryValue(mskey.c_str(), msbuild, - cmSystemTools::KeyWOW64_32)) { - cmSystemTools::ConvertToUnixSlashes(msbuild); - msbuild += "/MSBuild/"; - msbuild += this->GetIDEVersion(); - msbuild += "/Bin/MSBuild.exe"; - if (cmSystemTools::FileExists(msbuild, true)) { - return msbuild; - } - } - msbuild = "MSBuild.exe"; return msbuild; } |