Follow-up to 1719a9b3d1
:
Only disable NEON extension for Apple ARM builds, leave it enabled for Raspberry PI.
This commit is contained in:
parent
9f77335d8a
commit
cef9985b93
1 changed files with 7 additions and 1 deletions
8
deps/PNG/PNG.cmake
vendored
8
deps/PNG/PNG.cmake
vendored
|
@ -1,3 +1,9 @@
|
|||
if (APPLE)
|
||||
# Only disable NEON extension for Apple ARM builds, leave it enabled for Raspberry PI.
|
||||
set(_disable_neon_extension "-DPNG_ARM_NEON=off")
|
||||
else ()
|
||||
set(_disable_neon_extension "")
|
||||
endif ()
|
||||
|
||||
prusaslicer_add_cmake_project(PNG
|
||||
GIT_REPOSITORY https://github.com/glennrp/libpng.git
|
||||
|
@ -9,7 +15,7 @@ prusaslicer_add_cmake_project(PNG
|
|||
-DPNG_PREFIX=prusaslicer_
|
||||
-DPNG_TESTS=OFF
|
||||
-DDISABLE_DEPENDENCY_TRACKING=OFF
|
||||
-DPNG_ARM_NEON=off
|
||||
${_disable_neon_extension}
|
||||
)
|
||||
|
||||
if (MSVC)
|
||||
|
|
Loading…
Reference in a new issue