mirror of
https://github.com/decompals/wibo.git
synced 2025-12-16 00:17:04 +00:00
Add CMake toolchains and update CI
This commit is contained in:
20
cmake/toolchains/x86_64-darwin.cmake
Normal file
20
cmake/toolchains/x86_64-darwin.cmake
Normal file
@@ -0,0 +1,20 @@
|
||||
# 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)
|
||||
Reference in New Issue
Block a user