Skip to content

Commit

Permalink
Do not set extra flags and deployment target for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
laggykiller committed Feb 28, 2024
1 parent 9205c1d commit 0de1e19
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ if (WIN32)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")
elseif (LINUX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
elseif (APPLE)
if(${APNGASM_COMPILE_TARGET} STREQUAL "armv8")
set(CMAKE_OSX_DEPLOYMENT_TARGET "11.0")
else()
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -stdlib=libc++")
endif()
# elseif (APPLE)
# if(${APNGASM_COMPILE_TARGET} STREQUAL "armv8")
# set(CMAKE_OSX_DEPLOYMENT_TARGET "11.0")
# else()
# set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9")
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -stdlib=libc++")
# endif()
endif()

set(ZLIB_USE_STATIC_LIBS ON)
Expand Down

0 comments on commit 0de1e19

Please sign in to comment.