2022-12-21 15:15:22 +00:00
|
|
|
# Targeted operating system.
|
|
|
|
set(CMAKE_SYSTEM_NAME Darwin)
|
|
|
|
|
|
|
|
# TODO: don't hardcode this
|
2023-03-16 01:44:40 +00:00
|
|
|
set(TARGET_SYSROOT /feather/contrib/depends/x86_64-apple-darwin/native/SDK)
|
2022-12-21 15:15:22 +00:00
|
|
|
set(CMAKE_SYSROOT ${TARGET_SYSROOT})
|
|
|
|
set(CMAKE_OSX_SYSROOT ${TARGET_SYSROOT})
|
|
|
|
|
|
|
|
set(CMAKE_C_COMPILER clang)
|
|
|
|
set(CMAKE_CXX_COMPILER clang++)
|
|
|
|
|
2023-05-28 09:36:16 +00:00
|
|
|
set(CMAKE_C_FLAGS "@cmake_c_flags@")
|
|
|
|
set(CMAKE_CXX_FLAGS "@cmake_cxx_flags@")
|
2022-12-21 15:15:22 +00:00
|
|
|
|
|
|
|
set(CMAKE_INSTALL_NAME_TOOL x86_64-apple-darwin-install_name_tool)
|
|
|
|
set(CMAKE_FIND_ROOT_PATH /feather/contrib/depends/x86_64-apple-darwin/)
|
|
|
|
|
|
|
|
# Adjust the default behavior of the find commands:
|
|
|
|
# search headers and libraries in the target environment
|
|
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
|
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
|
|
|
|
|
|
# Search programs in the host environment
|
|
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|