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
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:47:07 +0300
commita96306dc8d7dc416561fff2f21a41e23b34ce171 (patch)
treeb54a7090a28df10591d20409aeed67cd1a384c6d
parentb44fff10de088ff885846a8d5ebfa1d0dc460ac8 (diff)
Follow-up to 1719a9b3d11ded4b944293a2d2fa9f88028f63c8:xarbit-apple-silicon
Only disable NEON extension for Apple ARM builds, leave it enabled for Raspberry PI.
-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)