mirror of
https://github.com/reactos/CMake.git
synced 2024-12-13 22:58:41 +00:00
d7e863c1c1
Since commit v3.4.0-rc1~5^2~1 (VS: Add support for selecting the Windows 10 SDK, 2015-09-30) the VS 2015 generator requires a Windows 10 SDK to be available when CMAKE_SYSTEM_VERSION specifies Windows 10 (e.g. when building on a Windows 10 host). Howewver, it is possible to install VS 2015 without any Windows 10 SDK. Instead of failing with an error message about the lack of a Windows 10 SDK, simply tolerate this case and use the default Windows 8.1 SDK. Since building for Windows Store still requires the SDK, retain the diagnostic in that case.
13 lines
609 B
ReStructuredText
13 lines
609 B
ReStructuredText
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``. If no Windows 10 SDK
|
|
is available this value will be empty.
|