Files
voice-cat/cmake/toolchains/ios-device.cmake

9 lines
403 B
CMake
Raw Permalink Normal View History

# Chainload toolchain for iOS device cross-compilation (arm64-ios vcpkg triplet).
# Loaded by vcpkg when building all dependencies for the arm64-ios target, ensuring
# every dep is compiled against the iPhone OS SDK (not the macOS SDK).
set(CMAKE_SYSTEM_NAME iOS)
set(CMAKE_SYSTEM_PROCESSOR arm64)
set(CMAKE_OSX_ARCHITECTURES arm64)
set(CMAKE_OSX_SYSROOT iphoneos)
set(CMAKE_OSX_DEPLOYMENT_TARGET 17.0)