From 7ba4617da3802c31142e16e4f01daca4a48a8958 Mon Sep 17 00:00:00 2001 From: laggykiller Date: Sun, 10 Sep 2023 02:26:17 +0800 Subject: [PATCH] Matching deployment target --- CMakeLists.txt | 8 +++++--- get_deps.py | 8 ++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4dd21d0..4eb2d7f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,9 +29,11 @@ if (WIN32) elseif (LINUX) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") elseif (APPLE) - # if(${APNGASM_COMPILE_TARGET} STREQUAL "x86_64") - set(CMAKE_OSX_DEPLOYMENT_TARGET "11.0") - # endif() + if(${APNGASM_COMPILE_TARGET} STREQUAL "x86_64") + set(CMAKE_OSX_DEPLOYMENT_TARGET "11.0") + else() + set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15") + endif() endif() set(ZLIB_USE_STATIC_LIBS ON) diff --git a/get_deps.py b/get_deps.py index 1770bc8..c52ede0 100755 --- a/get_deps.py +++ b/get_deps.py @@ -14,11 +14,11 @@ def install_deps(arch): settings.append('os=Windows') elif platform.system() == 'Darwin': settings.append('os=Macos') + if arch == 'x86_64': + settings.append('os.version=10.15') + else: + settings.append('os.version=11.0') settings.append('compiler=apple-clang') - # if arch == 'armv8': - settings.append('compiler.version=11.0') - # else: - # settings.append('compiler.version=10.15') settings.append('compiler.libcxx=libc++') elif platform.system() == 'Linux': settings.append('os=Linux')