Skip to content
This repository was archived by the owner on Mar 30, 2022. It is now read-only.

Commit bec3fe0

Browse files
drelaptopFranck Brescia
authored and
Franck Brescia
committed
cmake support set iOS Deployment Target for root project (cocos2d#19315)
* support set ios deployment target for root project * update gitignore
1 parent 3b786d6 commit bec3fe0

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

.gitignore

+16
Original file line numberDiff line numberDiff line change
@@ -166,3 +166,19 @@ tests/lua-tests/project/proj.tizen/res/
166166
*-build/
167167
# Ignore the CLion build folder, such as cmake-build-debug
168168
cmake-build-*/
169+
.vs
170+
cmake_build*
171+
172+
# tmp android build files
173+
cocos/platform/android/libcocos2dx/.project
174+
tests/lua-tests/project/proj.android/.project
175+
tests/lua-tests/project/proj.android/app/.project
176+
tests/*/proj.android/.settings/org.eclipse.buildship.core.prefs
177+
tests/*/project/proj.android/.settings/org.eclipse.buildship.core.prefs
178+
179+
# tmp folder for temp usage
180+
tmp/
181+
temp/
182+
183+
# external libs zip
184+
*.zip

cmake/ios.toolchain.cmake

+3-2
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)