From c8b52f6e966a2eaea454684814344517d0ea0893 Mon Sep 17 00:00:00 2001 From: sowle Date: Fri, 23 Feb 2024 11:47:16 +0100 Subject: [PATCH] iOS: deployment target set to 12.00, macOS: deployment target reverted back to 10.12 --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 87c80fd6..b66a22f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,7 +66,7 @@ find_package(OpenSSL REQUIRED) if(APPLE) - set(CMAKE_OSX_DEPLOYMENT_TARGET 12.00) + set(CMAKE_OSX_DEPLOYMENT_TARGET 10.12) endif() set(USE_PCH FALSE CACHE BOOL "Use shared precompiled headers") @@ -217,6 +217,7 @@ endif() message("CMAKE_SYSTEM_NAME: ${CMAKE_SYSTEM_NAME}") if(CMAKE_SYSTEM_NAME STREQUAL "iOS") + set(CMAKE_OSX_DEPLOYMENT_TARGET 12.00) set(Boost_LIBRARIES "libboost.a") #workaround for new XCode 12 policy for builds(now it includes a slice for the "arm64" when builds for simulator) set(__iphoneos_archs "arm64")