@@ -27,8 +27,8 @@ set (IOS True)
2727
2828# Force the compilers to gcc for iOS
2929include (CMakeForceCompiler)
30- CMAKE_FORCE_C_COMPILER ( gcc gcc )
31- CMAKE_FORCE_CXX_COMPILER ( g++ g++ )
30+ CMAKE_FORCE_C_COMPILER(/usr/bin/ gcc GNU )
31+ CMAKE_FORCE_CXX_COMPILER(/usr/bin/ g++ GNU )
3232
3333# Skip the platform compiler checks for cross compiling
3434set (CMAKE_CXX_COMPILER_WORKS TRUE )
@@ -92,26 +92,23 @@ set( CMAKE_IOS_SDK_ROOT, "/Applications/Xcode.app/Contents/Developer/Platforms/i
9292if (NOT DEFINED CMAKE_IOS_DEVELOPER_ROOT)
9393 set (CMAKE_IOS_DEVELOPER_ROOT "/Applications/Xcode.app/Contents/Developer/Platforms/${IOS_PLATFORM_LOCATION} /Developer" )
9494else (DEFINED CMAKE_IOS_DEVELOPER_ROOT)
95- message (STATUS "FART " )
95+ message (STATUS "IOS DEV ROOT DEF " )
9696endif (NOT DEFINED CMAKE_IOS_DEVELOPER_ROOT)
9797set (CMAKE_IOS_DEVELOPER_ROOT ${CMAKE_IOS_DEVELOPER_ROOT} CACHE PATH "Location of iOS Platform" )
9898
9999# Find and use the most recent iOS sdk
100100if (NOT DEFINED CMAKE_IOS_SDK_ROOT)
101101 file (GLOB _CMAKE_IOS_SDKS "${CMAKE_IOS_DEVELOPER_ROOT} /SDKs/*" )
102102 if (_CMAKE_IOS_SDKS)
103- message (STATUS "FART 2" )
104103 list (SORT _CMAKE_IOS_SDKS)
105- message (STATUS "FART 3" )
106104 list (REVERSE _CMAKE_IOS_SDKS)
107- message (STATUS "FART 4" )
108105 list (GET _CMAKE_IOS_SDKS 0 CMAKE_IOS_SDK_ROOT)
109106 else (_CMAKE_IOS_SDKS)
110107 message ( FATAL_ERROR "Crap" )
111108 endif (_CMAKE_IOS_SDKS)
112109 message (STATUS "Toolchain using default iOS SDK: ${CMAKE_IOS_SDK_ROOT} " )
113110else (DEFINED CMAKE_IOS_SDK_ROOT)
114- message (STATUS "FART 2 " )
111+ message (STATUS "CMAKE IOS SDK ROOTS DEFINED " )
115112endif (NOT DEFINED CMAKE_IOS_SDK_ROOT)
116113set (CMAKE_IOS_SDK_ROOT ${CMAKE_IOS_SDK_ROOT} CACHE PATH "Location of the selected iOS SDK" )
117114
@@ -139,4 +136,3 @@ set (CMAKE_SYSTEM_FRAMEWORK_PATH
139136set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY)
140137set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
141138set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
142-
0 commit comments