Created
August 12, 2015 05:07
-
-
Save vivkin/9fa3e75bf189e5156442 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
set(CMAKE_SYSTEM_NAME Darwin) | |
execute_process(COMMAND xcrun --sdk iphoneos --show-sdk-path OUTPUT_VARIABLE CMAKE_OSX_SYSROOT OUTPUT_STRIP_TRAILING_WHITESPACE) | |
execute_process(COMMAND xcrun --sdk iphoneos --find cc OUTPUT_VARIABLE CMAKE_C_COMPILER OUTPUT_STRIP_TRAILING_WHITESPACE) | |
execute_process(COMMAND xcrun --sdk iphoneos --find c++ OUTPUT_VARIABLE CMAKE_CXX_COMPILER OUTPUT_STRIP_TRAILING_WHITESPACE) | |
include(CMakeForceCompiler) | |
CMAKE_FORCE_C_COMPILER(${CMAKE_C_COMPILER} AppleClang) | |
CMAKE_FORCE_CXX_COMPILER(${CMAKE_CXX_COMPILER} AppleClang) | |
set(CMAKE_OSX_SYSROOT iphoneos CACHE STRING "") | |
set(CMAKE_OSX_ARCHITECTURES $(ARCHS_STANDARD) CACHE STRING "") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment