Skip to content

Commit 55b6d3a

Browse files
authored
cmake support set iOS Deployment Target for root project (#19315)
* support set ios deployment target for root project * update gitignore
1 parent a109a5d commit 55b6d3a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,3 +179,6 @@ tests/*/project/proj.android/.settings/org.eclipse.buildship.core.prefs
179179
# tmp folder for temp usage
180180
tmp/
181181
temp/
182+
183+
# external libs zip
184+
*.zip

cmake/ios.toolchain.cmake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ set(UNIX True)
3535
set(APPLE True)
3636
set(IOS True)
3737

38-
# Required as of cmake 2.8.10
39-
set(CMAKE_OSX_DEPLOYMENT_TARGET "" CACHE STRING "Force unset of the deployment target for iOS" FORCE)
38+
# support iOS on cmake 3.11+
39+
# cmake 3.11 milestone feature, https://gitlab.kitware.com/cmake/cmake/issues/17431
40+
set(CMAKE_OSX_DEPLOYMENT_TARGET "8.0" CACHE STRING "set of the deployment target for iOS" FORCE)
4041

4142
# Determine the cmake host system version so we know where to find the iOS SDKs
4243
find_program(CMAKE_UNAME uname /bin /usr/bin /usr/local/bin)

0 commit comments

Comments
 (0)