From cef9985b9347c0428985e3f5d8db41e5bd1aea1d Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Tue, 1 Dec 2020 16:47:07 +0100 Subject: [PATCH] Follow-up to 1719a9b3d11ded4b944293a2d2fa9f88028f63c8: Only disable NEON extension for Apple ARM builds, leave it enabled for Raspberry PI. --- deps/PNG/PNG.cmake | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/deps/PNG/PNG.cmake b/deps/PNG/PNG.cmake index 412f1c0ee6..e07afec6de 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)