Skip to content

Commit

Permalink
build: set the vcpkg triplet for arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jan 12, 2025
1 parent b7f999b commit cce4323
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ if(WIN32)
elseif(NOT "$ENV{PROCESSOR_ARCHITEW6432}" STREQUAL "")
set(CMAKE_SYSTEM_PROCESSOR "$ENV{PROCESSOR_ARCHITEW6432}")
set(VCPKG_TARGET_TRIPLET "x86-windows-static")
elseif("$ENV{Platform}" STREQUAL "arm64")
set(CMAKE_SYSTEM_PROCESSOR "arm64")
set(VCPKG_TARGET_TRIPLET "arm64-windows-static")
else()
set(CMAKE_SYSTEM_PROCESSOR "$ENV{PROCESSOR_ARCHITECTURE}")
set(VCPKG_TARGET_TRIPLET "x64-windows-static")
Expand Down

0 comments on commit cce4323

Please # to comment.