From e3385971e1b92a39582a2a4c3130e15db0575321 Mon Sep 17 00:00:00 2001 From: Jeff Date: Sun, 19 Jun 2022 21:40:21 -0400 Subject: [PATCH] set triple for simulator in arm64 --- cmake/StaticBuild.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/StaticBuild.cmake b/cmake/StaticBuild.cmake index 168bdc5320..210ded85b5 100644 --- a/cmake/StaticBuild.cmake +++ b/cmake/StaticBuild.cmake @@ -103,6 +103,9 @@ set(cross_rc "") if(CMAKE_CROSSCOMPILING) if(APPLE_TARGET_TRIPLE) + if(PLATFORM MATCHES "SIMULATORARM64") + set(APPLE_TARGET_TRIPLE aarch64-apple-ios) + endif() set(cross_host "--host=${APPLE_TARGET_TRIPLE}") else() set(cross_host "--host=${ARCH_TRIPLET}")