diff options
author | Brad King <brad.king@kitware.com> | 2023-04-03 15:12:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-04-05 16:06:22 (GMT) |
commit | f90c8ab54ebd751600f525a3e548841e6aa16049 (patch) | |
tree | 2cd8954fd3362418f46407b8f43df4d26ffa4ab7 /Help/variable | |
parent | b512c53d43b6078c97e06231ccbfa8599a66a4f4 (diff) | |
download | CMake-f90c8ab54ebd751600f525a3e548841e6aa16049.zip CMake-f90c8ab54ebd751600f525a3e548841e6aa16049.tar.gz CMake-f90c8ab54ebd751600f525a3e548841e6aa16049.tar.bz2 |
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
Diffstat (limited to 'Help/variable')
-rw-r--r-- | Help/variable/CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION.rst | 3 |
1 files changed, 3 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 index 4a3ef47..d69bb7b 100644 --- a/Help/variable/CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION.rst +++ b/Help/variable/CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION.rst @@ -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 |