[Bf-blender-cvs] [bc4bb7da5ee] mac_arm64: macOS: Fixed libpng build on arm64 without requiring a patch.
Stefan Werner
noreply at git.blender.org
Mon Jul 13 08:39:22 CEST 2020
Commit: bc4bb7da5ee7b3e3d6fcc1653a89515fb7de3f73
Author: Stefan Werner
Date: Mon Jul 13 00:29:40 2020 +0200
Branches: mac_arm64
https://developer.blender.org/rBbc4bb7da5ee7b3e3d6fcc1653a89515fb7de3f73
macOS: Fixed libpng build on arm64 without requiring a patch.
===================================================================
M build_files/build_environment/cmake/png.cmake
===================================================================
diff --git a/build_files/build_environment/cmake/png.cmake b/build_files/build_environment/cmake/png.cmake
index 63ca7566fa1..9f8641873e6 100644
--- a/build_files/build_environment/cmake/png.cmake
+++ b/build_files/build_environment/cmake/png.cmake
@@ -23,7 +23,7 @@ set(PNG_EXTRA_ARGS
)
if(APPLE AND ("${CMAKE_OSX_ARCHITECTURES}" STREQUAL "arm64"))
- set(PNG_EXTRA_ARGS ${PNG_EXTRA_ARGS} -DPNG_HARDWARE_OPTIMIZATIONS=ON -DCMAKE_SYSTEM_PROCESSOR="aarch64")
+ set(PNG_EXTRA_ARGS ${PNG_EXTRA_ARGS} -DPNG_HARDWARE_OPTIMIZATIONS=ON -DPNG_ARM_NEON=on -DCMAKE_SYSTEM_PROCESSOR="aarch64")
endif()
ExternalProject_Add(external_png
More information about the Bf-blender-cvs
mailing list