• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1message (STATUS "Setting up iPhoneOS toolchain")
2set (IPHONEOS TRUE)
3
4# Standard settings
5set (CMAKE_SYSTEM_NAME iOS)
6# Include extra modules for the iOS platform files
7set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/platforms/ios/cmake/Modules")
8
9# Force the compilers to clang for iOS
10include (CMakeForceCompiler)
11#CMAKE_FORCE_C_COMPILER (clang GNU)
12#CMAKE_FORCE_CXX_COMPILER (clang++ GNU)
13
14set (CMAKE_C_SIZEOF_DATA_PTR 4)
15set (CMAKE_C_HAS_ISYSROOT 1)
16set (CMAKE_C_COMPILER_ABI ELF)
17set (CMAKE_CXX_SIZEOF_DATA_PTR 4)
18set (CMAKE_CXX_HAS_ISYSROOT 1)
19set (CMAKE_CXX_COMPILER_ABI ELF)
20
21# Skip the platform compiler checks for cross compiling
22set (CMAKE_CXX_COMPILER_WORKS TRUE)
23set (CMAKE_C_COMPILER_WORKS TRUE)
24
25# Search for programs in the build host directories
26SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY)
27#   for libraries and headers in the target directories
28SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
29SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
30
31message (STATUS "iPhoneOS toolchain loaded")
32