File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -59,12 +59,17 @@ if(APPLE)
59
59
60
60
# iOS build options
61
61
option (BUILD_IOS "Build for iOS" NO )
62
+ option (FORCE_RESET_OSX_DEPLOYMENT_TARGET "Clear the OSX Deployment Target Set" YES )
62
63
63
64
if (BUILD_IOS )
64
65
set (TARGET_ARCH "APPLE" )
65
66
set (IOS True )
66
67
set (APPLE True )
67
- set (CMAKE_OSX_DEPLOYMENT_TARGET "" CACHE STRING "Force unset of the deployment target for iOS" FORCE )
68
+
69
+ if (FORCE_RESET_OSX_DEPLOYMENT_TARGET )
70
+ set (CMAKE_OSX_DEPLOYMENT_TARGET "" CACHE STRING "Force unset of the deployment target for iOS" FORCE )
71
+ endif ()
72
+
68
73
if ((${IOS_PLAT} STREQUAL "iphonesimulator" ) AND (${IOS_ARCH} STREQUAL "arm64" ))
69
74
# iOS arm64 simulator is supported starting BigSur
70
75
# Unfortunately, CMAKE produces a device binary (not simulator) when providing -miphoneos-version-min flag when building iOS arm64 simulator
You can’t perform that action at this time.
0 commit comments