Enhance CMake and vcpkg integration for Windows ARM64 builds

- Updated `CMakeLists.txt` to improve vcpkg integration by adding checks for the existence of the toolchain file and providing warnings if it is not found.
- Introduced new CMake presets for Windows ARM64 configurations (debug, release, and development) in `CMakePresets.json`, ensuring proper setup for ARM64 architecture.
- Modified `setup-vcpkg-windows.ps1` to auto-detect ARM64 architecture, enhancing the setup script's usability for different environments.
This commit is contained in:
scawful
2025-09-28 19:32:37 -04:00
parent cbe6c92da7
commit a1baa747e1
3 changed files with 103 additions and 7 deletions

View File

@@ -5,6 +5,15 @@ param(
[string]$Triplet = "x64-windows"
)
# Auto-detect architecture if not specified
if ($Triplet -eq "x64-windows") {
$Architecture = $env:PROCESSOR_ARCHITECTURE
if ($Architecture -eq "ARM64") {
$Triplet = "arm64-windows"
Write-Host "Auto-detected ARM64 architecture, using arm64-windows triplet" -ForegroundColor Yellow
}
}
# Set error handling
$ErrorActionPreference = "Continue"