mirror of
https://github.com/decompals/wibo.git
synced 2025-12-11 14:41:58 +00:00
21 lines
809 B
CMake
21 lines
809 B
CMake
# Toolchain file for x86_64 macOS builds
|
|
set(CMAKE_SYSTEM_NAME Darwin)
|
|
set(CMAKE_SYSTEM_PROCESSOR x86_64)
|
|
|
|
# Set the target triple for cross-compilation
|
|
set(TARGET x86_64-apple-darwin)
|
|
set(CMAKE_C_COMPILER_TARGET ${TARGET})
|
|
set(CMAKE_CXX_COMPILER_TARGET ${TARGET})
|
|
set(CMAKE_ASM_COMPILER_TARGET ${TARGET})
|
|
|
|
# Force x86_64 architecture
|
|
set(CMAKE_OSX_ARCHITECTURES "x86_64" CACHE STRING "Build architecture for macOS" FORCE)
|
|
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "Minimum macOS deployment version" FORCE)
|
|
|
|
# Search for programs in the build host directories
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
|
# Search for libraries and headers in the target directories
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
|