VS: Teach CMAKE_GENERATOR_PLATFORM to support Windows 8.1 SDK selection

Honor an explicit `version=8.1` field value regardless of the Windows
target version.

Issue: #25170
This commit is contained in:
Brad King
2023-08-08 14:20:43 -04:00
parent 15ff89654b
commit ae97d82e83
4 changed files with 40 additions and 0 deletions

View File

@@ -66,6 +66,10 @@ Supported pairs are:
the value of :variable:`CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION_MAXIMUM`,
if that variable is set.
``8.1``
Specify the 8.1 SDK version. This is always supported by VS 2015.
On VS 2017 and above the 8.1 SDK must be installed.
If the ``version`` field is not specified, CMake selects a version as
described in the :variable:`CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION`
variable documentation.