Files
voice-cat/cmake/vcpkg-overlays/triplets/arm64-ios-simulator.cmake

14 lines
879 B
CMake
Raw Normal View History

set(VCPKG_TARGET_ARCHITECTURE arm64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_CMAKE_SYSTEM_NAME iOS)
# Release-only: debug iOS binaries are never shipped and skipping them halves build time.
set(VCPKG_BUILD_TYPE release)
# Override the autoconf --host triple (same rationale as arm64-ios.cmake — prevents autoconf from
# treating cross-compilation as a native build and trying to run arm64-ios binaries on macOS).
set(VCPKG_MAKE_BUILD_TRIPLET "--host=aarch64-apple-ios17.0-simulator")
# Chainload toolchain: forces every vcpkg dep to compile against the iphonesimulator SDK so all
# objects carry the platform IOSSIMULATOR tag (not IOS or MACOS). Critical for xcodebuild's
# -create-xcframework which rejects fat libs that mix platform tags.
set(VCPKG_CHAINLOAD_TOOLCHAIN_FILE "${CMAKE_CURRENT_LIST_DIR}/../../toolchains/ios-simulator.cmake")