cmake: Use precise 4-component SDK version for Windows SDK

CMake internally manages the Windows SDK version as a 4-component
version string. If only provided with 3 components, CMake will
implicitly add a "0" as the fourth component and the internal
CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION variable will represent that
4-component string.

As this variable is used to set up sub-projects for other platforms,
re-creating them will fail if the original version is only provided
in its 3-component form.
This commit is contained in:
PatTheMav
2025-08-28 20:09:48 +02:00
committed by Ryan Foster
parent 7a715733fc
commit b146ca3dcd

View File

@@ -98,7 +98,7 @@
"lhs": "${hostSystemName}",
"rhs": "Windows"
},
"architecture": "x64,version=10.0.22621",
"architecture": "x64,version=10.0.22621.0",
"binaryDir": "${sourceDir}/build_x64",
"generator": "Visual Studio 17 2022",
"cacheVariables": {
@@ -127,7 +127,7 @@
"lhs": "${hostSystemName}",
"rhs": "Windows"
},
"architecture": "ARM64,version=10.0.22621",
"architecture": "ARM64,version=10.0.22621.0",
"binaryDir": "${sourceDir}/build_arm64",
"generator": "Visual Studio 17 2022",
"cacheVariables": {