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:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user