Skip to content

Commit

Permalink
ci: pin Windows SDK for ARM builds
Browse files Browse the repository at this point in the history
  • Loading branch information
LDVG committed Dec 2, 2024
1 parent fae3b4e commit 1519c73
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions windows/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1519c73

Please sign in to comment.