libsuperderpy/cmake/osxcross64.toolchain

18 lines
655 B
Text
Raw Normal View History

2016-07-05 01:30:06 +02:00
set(CMAKE_SYSTEM_NAME Darwin)
# replace with your path to OSXCross toolchain
set(OSXCROSS_PATH /home/dos/git/osxcross/target)
set(OSXCROSS_SDK_VERSION 10.11)
set(CMAKE_C_COMPILER ${OSXCROSS_PATH}/bin/o64-clang)
set(CMAKE_CXX_COMPILER ${OSXCROSS_PATH}/bin/o64-clang++)
set(CMAKE_LINKER ${OSXCROSS_PATH}/bin/x86_64-apple-darwin15-ld)
set(CMAKE_AR ${OSXCROSS_PATH}/bin/x86_64-apple-darwin15-ar)
2016-07-05 01:30:06 +02:00
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
set(CMAKE_PREFIX_PATH ${OSXCROSS_PATH}/SDK/MacOSX${OSXCROSS_SDK_VERSION}.sdk/usr)