commit | cd0ea2a7f53b603d3d9b5b891c779c430047b39a | [log] [tgz] |
---|---|---|
author | Jon Creighton <jcreighton@apple.com> | Mon Jan 09 13:17:31 2023 +0000 |
committer | Cosmin Truta <ctruta@gmail.com> | Mon Jan 09 19:55:04 2023 +0200 |
tree | ada5a79c8ff818f87a3c15d03a862080c0fa523a | |
parent | 9923515ff441b4c07ce3f8c9985a547fe582c4da [diff] |
Fix for universal binaries on macOS Fix the issue of a clang: error: no such file or directory: 'x86_64' error on building universal binaries on macOS. It is also necessary to specify: -DCMAKE_C_FLAGS="-DPNG_ARM_NEON_OPT=0" Example CMake command: cmake -S libpng \ -B build_libpng \ -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" \ -DCMAKE_C_FLAGS="-DPNG_ARM_NEON_OPT=0" Signed-off-by: Cosmin Truta <ctruta@gmail.com>