Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorVojtech Bubnik <bubnikv@gmail.com>2020-12-01 18:47:07 +0300
committerVojtech Bubnik <bubnikv@gmail.com>2020-12-01 18:49:47 +0300
commitcef9985b9347c0428985e3f5d8db41e5bd1aea1d (patch)
treeccbe4c9a1c170565c14f02b78bd2979d7affd95c /deps
parent9f77335d8ad1115ade8eeaf9c54f23821d27635f (diff)
Follow-up to 1719a9b3d11ded4b944293a2d2fa9f88028f63c8:
Only disable NEON extension for Apple ARM builds, leave it enabled for Raspberry PI.
Diffstat (limited to 'deps')
-rw-r--r--deps/PNG/PNG.cmake8
1 files changed, 7 insertions, 1 deletions
diff --git a/deps/PNG/PNG.cmake b/deps/PNG/PNG.cmake
index 412f1c0ee..e07afec6d 100644
--- a/deps/PNG/PNG.cmake
+++ b/deps/PNG/PNG.cmake
@@ -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)