From f73ece7d1eefd30740284679236b9f3c36f1a172 Mon Sep 17 00:00:00 2001 From: "Konstantin S. Matveyev" Date: Fri, 23 Aug 2019 18:31:22 +0300 Subject: [PATCH] Fix build iOS: when using Toolchain or building with Makefiles (not Xcode) --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dc63da5f4..816b58aa3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,13 +74,13 @@ ELSEIF(APPLE) SET (IPHONE_ENABLE_BITCODE "NO" CACHE STRING "IOS Enable Bitcode") # seamless toggle between device and simulator - SET(CMAKE_XCODE_EFFECTIVE_PLATFORMS "-iphoneos;-iphonesimulator") + SET(CMAKE_XCODE_EFFECTIVE_PLATFORMS "-iphoneos;-iphonesimulator" CACHE STRING "Xcode effective platforms for iOS") # set deployment target to min version - SET(CMAKE_XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET "${IPHONE_VERSION_MIN}" CACHE STRING "Deployment target for iOS" FORCE) + SET(CMAKE_XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET "${IPHONE_VERSION_MIN}" CACHE STRING "Xcode deployment target for iOS") # Set standard architectures - SET(CMAKE_OSX_ARCHITECTURES "$(ARCHS_STANDARD)") + SET(CMAKE_OSX_ARCHITECTURES "$(ARCHS_STANDARD)" CACHE STRING "Build architectures for iOS") ELSE() # OSX >= 10.5 uses Cocoa windowing system, otherwise Carbon