Skip to content

Commit

Permalink
cmake: Set PNG_ARM_NEON_OPT=0 on macOS.
Browse files Browse the repository at this point in the history
Avoids M1 build failures according to krogovin.

apitrace/apitrace#711
  • Loading branch information
jrfonseca committed Feb 23, 2021
1 parent 83691e9 commit d2c2bba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions thirdparty/libpng/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ add_convenience_library (png_bundled EXCLUDE_FROM_ALL
pngwutil.c
)

if (APPLE)
# https://github.com/apitrace/apitrace/issues/711
target_compile_definitions (png_bundled PRIVATE PNG_ARM_NEON_OPT=0)
endif ()

install (
FILES LICENSE
DESTINATION ${DOC_INSTALL_DIR}
Expand Down

0 comments on commit d2c2bba

Please sign in to comment.