1717# By default this location is automatcially chosen based on the CMAKE_IOS_DEVELOPER_ROOT value.
1818# In this case it will always be the most up-to-date SDK found in the CMAKE_IOS_DEVELOPER_ROOT path.
1919# If set manually, this will force the use of a specific SDK version
20- #
21- # IOS_BITCODE = 1/0: Enable bitcode or not. Only iOS >= 6.0 device build can enable bitcode. Default is enabled.
2220
2321# Macros:
2422#
@@ -38,11 +36,6 @@ set (UNIX TRUE)
3836set (APPLE TRUE )
3937set (IOS TRUE )
4038
41- if (NOT DEFINED IOS_BITCODE) # check xcode/clang version? since xcode 7
42- set (IOS_BITCODE 1)
43- endif ()
44- set (IOS_BITCODE_MARKER 0)
45-
4639# Required as of cmake 2.8.10
4740set (CMAKE_OSX_DEPLOYMENT_TARGET "" CACHE STRING "Force unset of the deployment target for iOS" FORCE)
4841
@@ -71,20 +64,14 @@ set (CMAKE_SHARED_MODULE_SUFFIX ".so")
7164set (CMAKE_MODULE_EXISTS 1)
7265set (CMAKE_DL_LIBS "" )
7366
74- if (IOS_BITCODE)
75- set (BITCODE_FLAGS "-fembed-bitcode" )
76- elseif (IOS_BITCODE_MARKER)
77- set (BITCODE_FLAGS "-fembed-bitcode-marker" )
78- endif ()
79-
8067set (CMAKE_C_OSX_COMPATIBILITY_VERSION_FLAG "-compatibility_version " )
8168set (CMAKE_C_OSX_CURRENT_VERSION_FLAG "-current_version " )
8269set (CMAKE_CXX_OSX_COMPATIBILITY_VERSION_FLAG "${CMAKE_C_OSX_COMPATIBILITY_VERSION_FLAG} " )
8370set (CMAKE_CXX_OSX_CURRENT_VERSION_FLAG "${CMAKE_C_OSX_CURRENT_VERSION_FLAG} " )
8471
8572# Hidden visibilty is required for cxx on iOS
86- set (CMAKE_C_FLAGS_INIT " ${BITCODE_FLAGS} " )
87- set (CMAKE_CXX_FLAGS_INIT "-fvisibility=hidden -fvisibility-inlines-hidden ${BITCODE_FLAGS} " )
73+ set (CMAKE_C_FLAGS_INIT)
74+ set (CMAKE_CXX_FLAGS_INIT "-fvisibility=hidden -fvisibility-inlines-hidden" )
8875
8976set (CMAKE_C_LINK_FLAGS "-Wl,-search_paths_first ${CMAKE_C_LINK_FLAGS} " )
9077set (CMAKE_CXX_LINK_FLAGS "-Wl,-search_paths_first ${CMAKE_CXX_LINK_FLAGS} " )
0 commit comments