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
141
141
if (IOS_PLATFORM STREQUAL "OS" )
142
142
set (XCODE_IOS_PLATFORM iphoneos )
143
143
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 ()
145
149
endif ()
146
150
elseif (IOS_PLATFORM STREQUAL "OS64" )
147
151
set (XCODE_IOS_PLATFORM iphoneos )
148
152
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 ()
150
158
endif ()
151
159
elseif (IOS_PLATFORM STREQUAL "SIMULATOR" )
152
160
set (XCODE_IOS_PLATFORM iphonesimulator )
You can’t perform that action at this time.
0 commit comments