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}")