File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,9 @@ if(APPLE)
3737
3838 if (FORCE_RESET_OSX_DEPLOYMENT_TARGET)
3939 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} " )
4343 else ()
4444 set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -miphoneos-version-min=${IOS_DEPLOYMENT_TARGET} " )
4545 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