mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-25 10:18:34 -06:00
VS: Select latest available Windows SDK version by default
Add policy `CMP0149` to stop preferring SDKs exactly matching `CMAKE_SYSTEM_VERSION` over the latest SDK. Fixes: #16202
This commit is contained in:
@@ -15,6 +15,9 @@ VS 2015 and above support specification of a Windows SDK version:
|
||||
* Otherwise, if :variable:`CMAKE_SYSTEM_VERSION` is set to an available
|
||||
SDK version, that version is selected.
|
||||
|
||||
.. versionchanged:: 3.27
|
||||
This is disabled by policy :policy:`CMP0149`.
|
||||
|
||||
* Otherwise, CMake uses the latest Windows SDK version available.
|
||||
|
||||
The chosen Windows target version number is provided
|
||||
|
||||
Reference in New Issue
Block a user