File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,9 @@ if(APPLE)
37
37
38
38
if (FORCE_RESET_OSX_DEPLOYMENT_TARGET)
39
39
set (CMAKE_OSX_DEPLOYMENT_TARGET "" CACHE STRING "Force unset of the deployment target for iOS" FORCE)
40
- if (( ${IOS_PLAT} STREQUAL "iphonesimulator" ) AND (( ${IOS_ARCH} STREQUAL "arm64" ) OR ( ${IOS_ARCH} STREQUAL "arm64e" )) )
41
- # iOS arm64 simulator is supported starting BigSur
42
- # Unfortunately, CMAKE produces a device binary (not simulator) when providing -miphoneos- version-min flag when building iOS arm64 simulator
40
+ if ( ${IOS_PLAT} STREQUAL "iphonesimulator" )
41
+ set (CMAKE_C_FLAGS " ${CMAKE_C_FLAGS} -mios- simulator-version-min= ${IOS_DEPLOYMENT_TARGET} " )
42
+ set ( CMAKE_CXX_FLAGS " ${CMAKE_CXX_FLAGS} -mios-simulator- version-min= ${IOS_DEPLOYMENT_TARGET} " )
43
43
else ()
44
44
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -miphoneos-version-min=${IOS_DEPLOYMENT_TARGET} " )
45
45
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -miphoneos-version-min=${IOS_DEPLOYMENT_TARGET} " )
You can’t perform that action at this time.
0 commit comments