From b146ca3dcd5b2bcf05bd377ee3ff517ec8956dd5 Mon Sep 17 00:00:00 2001 From: PatTheMav Date: Thu, 28 Aug 2025 20:09:48 +0200 Subject: [PATCH] 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. --- CMakePresets.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakePresets.json b/CMakePresets.json index 119cafea2..f3ceafada 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -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": {