set default minimum deployment target (#20323)

This commit is contained in:
coulsonwang 2019-11-14 09:43:37 +08:00 committed by minggo
parent d03411d6eb
commit 56888524b7
1 changed files with 7 additions and 0 deletions

View File

@ -30,6 +30,13 @@ cmake_minimum_required(VERSION 3.6)
project(Cocos2d-x)
# set default minimum deployment target
if(XCODE)
if(NOT DEFINED CMAKE_XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET)
SET (CMAKE_XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET 8.0)
endif()
endif()
# cocos2dx root path
set(COCOS2DX_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR})
set(CMAKE_MODULE_PATH ${COCOS2DX_ROOT_PATH}/cmake/Modules/)