Skip to content

Commit

Permalink
Matching deployment target
Browse files Browse the repository at this point in the history
  • Loading branch information
laggykiller committed Sep 9, 2023
1 parent ac4f7b5 commit 7ba4617
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 4 additions & 4 deletions get_deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 7ba4617

Please sign in to comment.