diff --git a/CMakeLists.txt b/CMakeLists.txt index c6e6e20..7366cca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,7 +29,7 @@ if (WIN32) elseif (LINUX) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") elseif (APPLE) - if(${APNGASM_COMPILE_TARGET} STREQUAL "x86_64") + if(${APNGASM_COMPILE_TARGET} STREQUAL "armv8") set(CMAKE_OSX_DEPLOYMENT_TARGET "11.0") else() set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15") diff --git a/scripts/get_deps.py b/scripts/get_deps.py index d9a6d9c..eb9488d 100755 --- a/scripts/get_deps.py +++ b/scripts/get_deps.py @@ -18,10 +18,10 @@ def install_deps(arch: str): settings.append("compiler.runtime=static") elif platform.system() == "Darwin": settings.append("os=Macos") - if arch == "x86_64": - settings.append("os.version=10.15") - else: + if arch == "armv8": settings.append("os.version=11.0") + else: + settings.append("os.version=10.15") settings.append("compiler=apple-clang") settings.append("compiler.libcxx=libc++") elif platform.system() == "Linux":