Skip to content

Commit cce4323

Browse files
committed
build: set the vcpkg triplet for arm64
1 parent b7f999b commit cce4323

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ if(WIN32)
7171
elseif(NOT "$ENV{PROCESSOR_ARCHITEW6432}" STREQUAL "")
7272
set(CMAKE_SYSTEM_PROCESSOR "$ENV{PROCESSOR_ARCHITEW6432}")
7373
set(VCPKG_TARGET_TRIPLET "x86-windows-static")
74+
elseif("$ENV{Platform}" STREQUAL "arm64")
75+
set(CMAKE_SYSTEM_PROCESSOR "arm64")
76+
set(VCPKG_TARGET_TRIPLET "arm64-windows-static")
7477
else()
7578
set(CMAKE_SYSTEM_PROCESSOR "$ENV{PROCESSOR_ARCHITECTURE}")
7679
set(VCPKG_TARGET_TRIPLET "x64-windows-static")

0 commit comments

Comments
 (0)