File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -141,12 +141,20 @@ set(IOS_PLATFORM ${IOS_PLATFORM} CACHE STRING
141141if (IOS_PLATFORM STREQUAL "OS" )
142142 set (XCODE_IOS_PLATFORM iphoneos)
143143 if (NOT IOS_ARCH)
144- set (IOS_ARCH armv7 armv7s arm64 arm64e)
144+ if (XCODE_VERSION VERSION_GREATER 10.0)
145+ set (IOS_ARCH armv7 armv7s arm64 arm64e)
146+ else ()
147+ set (IOS_ARCH armv7 armv7s arm64)
148+ endif ()
145149 endif ()
146150 elseif (IOS_PLATFORM STREQUAL "OS64" )
147151 set (XCODE_IOS_PLATFORM iphoneos)
148152 if (NOT IOS_ARCH)
149- set (IOS_ARCH arm64 arm64e)
153+ if (XCODE_VERSION VERSION_GREATER 10.0)
154+ set (IOS_ARCH arm64 arm64e)
155+ else ()
156+ set (IOS_ARCH arm64)
157+ endif ()
150158 endif ()
151159elseif (IOS_PLATFORM STREQUAL "SIMULATOR" )
152160 set (XCODE_IOS_PLATFORM iphonesimulator)
You can’t perform that action at this time.
0 commit comments