cmake: fix problems with static linking with osxcross

This commit is contained in:
Sebastian Krzyszkowiak 2019-04-06 21:18:17 +02:00
parent 6aedf685b6
commit 569834bce4
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -15,12 +15,12 @@ endif()
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)
set(CMAKE_RANLIB ${OSXCROSS_PATH}/bin/x86_64-apple-darwin15-ranlib)
set(CMAKE_STRIP ${OSXCROSS_PATH}/bin/x86_64-apple-darwin15-strip)
set(CMAKE_NM ${OSXCROSS_PATH}/bin/x86_64-apple-darwin15-nm)
set(CMAKE_INSTALL_NAME_TOOL ${OSXCROSS_PATH}/bin/x86_64-apple-darwin15-install_name_tool)
set(CMAKE_LINKER ${OSXCROSS_PATH}/bin/x86_64-apple-darwin15-ld CACHE FILEPATH "")
set(CMAKE_AR ${OSXCROSS_PATH}/bin/x86_64-apple-darwin15-ar CACHE FILEPATH "")
set(CMAKE_RANLIB ${OSXCROSS_PATH}/bin/x86_64-apple-darwin15-ranlib CACHE FILEPATH "")
set(CMAKE_STRIP ${OSXCROSS_PATH}/bin/x86_64-apple-darwin15-strip CACHE FILEPATH "")
set(CMAKE_NM ${OSXCROSS_PATH}/bin/x86_64-apple-darwin15-nm CACHE FILEPATH "")
set(CMAKE_INSTALL_NAME_TOOL ${OSXCROSS_PATH}/bin/x86_64-apple-darwin15-install_name_tool CACHE FILEPATH "")
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)