diff --git a/windows/build.ps1 b/windows/build.ps1 index abc139e2..56618533 100644 --- a/windows/build.ps1 +++ b/windows/build.ps1 @@ -75,6 +75,10 @@ if (-Not (Test-Path $GPG)) { } # Override CMAKE_SYSTEM_VERSION if $WinSDK is set. +if ($Arch -eq "ARM" -and [string]::IsNullOrEmpty($WinSDK)) { + # 10.0.261000.0 appear to have dropped ARM32 support + $WinSDK = '10.0.22621.0' +} if (-Not ([string]::IsNullOrEmpty($WinSDK))) { $CMAKE_SYSTEM_VERSION = "-DCMAKE_SYSTEM_VERSION='$WinSDK'" } else {