diff options
author | Gilles Khouzam <gillesk@microsoft.com> | 2015-09-30 20:22:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-10-02 13:53:25 (GMT) |
commit | 3f077996f58ca905125fc2387614b24c68c6f09e (patch) | |
tree | 49285eec1c99028594184c8dec34d97e678de25c /Help/variable | |
parent | 5dfc4c5f50f3198186320320cfed699872e5ece0 (diff) | |
download | CMake-3f077996f58ca905125fc2387614b24c68c6f09e.zip CMake-3f077996f58ca905125fc2387614b24c68c6f09e.tar.gz CMake-3f077996f58ca905125fc2387614b24c68c6f09e.tar.bz2 |
VS: Add support for selecting the Windows 10 SDK (#15670)
Teach the VS 2015 generator to produce a WindowsTargetPlatformVersion
value. Use the CMAKE_SYSTEM_VERSION to specify the version and if not
set choose a default based on available SDKs. Activate this behavior
when targeting Windows 10.
Co-Author: Brad King <brad.king@kitware.com>
Diffstat (limited to 'Help/variable')
-rw-r--r-- | Help/variable/CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION.rst b/Help/variable/CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION.rst new file mode 100644 index 0000000..6392849 --- /dev/null +++ b/Help/variable/CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION.rst @@ -0,0 +1,11 @@ +CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION +---------------------------------------- + +Visual Studio Windows Target Platform Version. + +When targeting Windows 10 and above Visual Studio 2015 and above support +specification of a target Windows version to select a corresponding SDK. +The :variable:`CMAKE_SYSTEM_VERSION` variable may be set to specify a +version. Otherwise CMake computes a default version based on the Windows +SDK versions available. The chosen Windows target version number is provided +in ``CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION``. |