From 56888524b7399af6127b80c59fd4d5a6a95e7cad Mon Sep 17 00:00:00 2001 From: coulsonwang Date: Thu, 14 Nov 2019 09:43:37 +0800 Subject: [PATCH] set default minimum deployment target (#20323) --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7deb315259..856d9843e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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/)