summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio14Generator.h
diff options
context:
space:
mode:
authorGilles Khouzam <gillesk@microsoft.com>2017-08-07 17:38:50 (GMT)
committerBrad King <brad.king@kitware.com>2018-09-17 17:07:40 (GMT)
commit83ddc4d2891a0bbb06fb1e3daa00245b3c23eddc (patch)
tree2207fa68f6aef0da1996d61e8acb2f960b0e373a /Source/cmGlobalVisualStudio14Generator.h
parentf0c84346ed25f6b8ce3a9f79aece87a58c8a4748 (diff)
downloadCMake-83ddc4d2891a0bbb06fb1e3daa00245b3c23eddc.zip
CMake-83ddc4d2891a0bbb06fb1e3daa00245b3c23eddc.tar.gz
CMake-83ddc4d2891a0bbb06fb1e3daa00245b3c23eddc.tar.bz2
VS: Do not select a Windows SDK too high for current VS version
Add an internal API for the maximum Windows 10 SDK version supported by a toolset. For Visual Studio 14 2015 that would be the version "10.0.14393.0". Fixes: #17788
Diffstat (limited to 'Source/cmGlobalVisualStudio14Generator.h')
-rw-r--r--Source/cmGlobalVisualStudio14Generator.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio14Generator.h b/Source/cmGlobalVisualStudio14Generator.h
index 4868df0..9f5bb4e 100644
--- a/Source/cmGlobalVisualStudio14Generator.h
+++ b/Source/cmGlobalVisualStudio14Generator.h
@@ -37,6 +37,10 @@ protected:
// of the toolset is installed
bool IsWindowsStoreToolsetInstalled() const;
+ // Used to make sure that the Windows 10 SDK selected can work with the
+ // version of the toolset.
+ virtual std::string GetWindows10SDKMaxVersion() const;
+
const char* GetIDEVersion() override { return "14.0"; }
virtual bool SelectWindows10SDK(cmMakefile* mf, bool required);