diff options
author | Gilles Khouzam <gillesk@microsoft.com> | 2015-09-01 20:52:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-09-02 14:11:36 (GMT) |
commit | 4b8b91688f2b2fd18a2bda182dd8a1c7a201ff3d (patch) | |
tree | fe48b7638e352daf2edcc05eabfc348a2e15d89b /Source/cmGlobalVisualStudio14Generator.cxx | |
parent | 72c11e590273d100c49f472afc3a7569b233ff00 (diff) | |
download | CMake-4b8b91688f2b2fd18a2bda182dd8a1c7a201ff3d.zip CMake-4b8b91688f2b2fd18a2bda182dd8a1c7a201ff3d.tar.gz CMake-4b8b91688f2b2fd18a2bda182dd8a1c7a201ff3d.tar.bz2 |
VS: Find Desktop SDK for current VS version (#15662)
Determine the Desktop SDK for Windows Phone and Windows Store from the
generator instead of the version of the targeted app. This allows to
build a Windows Phone 8.1 app on VS 2015 for example.
Diffstat (limited to 'Source/cmGlobalVisualStudio14Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio14Generator.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio14Generator.cxx b/Source/cmGlobalVisualStudio14Generator.cxx index 2cf55d4..d73eedf 100644 --- a/Source/cmGlobalVisualStudio14Generator.cxx +++ b/Source/cmGlobalVisualStudio14Generator.cxx @@ -124,3 +124,16 @@ void cmGlobalVisualStudio14Generator::WriteSLNHeader(std::ostream& fout) fout << "# Visual Studio 14\n"; } } + +//---------------------------------------------------------------------------- +bool +cmGlobalVisualStudio14Generator::IsWindowsDesktopToolsetInstalled() const +{ + const char desktop10Key[] = + "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\" + "VisualStudio\\14.0\\VC\\Runtimes"; + + std::vector<std::string> vc14; + return cmSystemTools::GetRegistrySubKeys(desktop10Key, + vc14, cmSystemTools::KeyWOW64_32); +} |