Created
April 5, 2016 00:42
-
-
Save jeffheifetz/f9ec3b04312387d6b0720ce41921fddb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# the name of the target operating system | |
SET(CMAKE_SYSTEM_NAME Darwin) | |
# which compilers to use for C and C++ | |
SET(CMAKE_C_COMPILER o32-clang) | |
SET(CMAKE_CXX_COMPILER o32-clang++-libc++) | |
# here is the target environment located | |
SET(CMAKE_FIND_ROOT_PATH /home/vagrant/osxcross/target/macports/pkgs/opt/local/) | |
SET(CMAKE_OSX_SYSROOT /home/vagrant/osxcross/target/SDK/MacOSX10.11.sdk/) | |
SET(CMAKE_AR /home/vagrant/osxcross/target/bin/i386-apple-darwin15-ar CACHE FILEPATH "Archiver") | |
SET(CMAKE_LINKER /home/vagrant/osxcross/target/bin/i386-apple-darwin15-ld CACHE FILEPATH "Linker") | |
SET(CMAKE_EXE_LINKER_FLAGS "-v" CACHE STRING "Flags") | |
# adjuse the default behaviour of the FIND_XXX() commands: | |
# search headers and libraries in the target environment, search | |
# programs in the host environment | |
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) | |
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) | |
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment