From a50bc7d8248dbdf4cd89bf6bfb6efbeb974f79a5 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Sat, 29 Oct 2016 15:52:14 +0300 Subject: [PATCH] cmake: fix libpng for AARCH64 --- 3rdparty/libpng/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/3rdparty/libpng/CMakeLists.txt b/3rdparty/libpng/CMakeLists.txt index 99e4663033..919d84e58b 100644 --- a/3rdparty/libpng/CMakeLists.txt +++ b/3rdparty/libpng/CMakeLists.txt @@ -31,6 +31,8 @@ file(GLOB lib_hdrs *.h) if(ENABLE_NEON) list(APPEND lib_srcs arm/arm_init.c arm/filter_neon.S arm/filter_neon_intrinsics.c) add_definitions(-DPNG_ARM_NEON_OPT=2) +elseif(AARCH64) + add_definitions(-DPNG_ARM_NEON_OPT=0) # NEON assembler is not supported endif() if(ENABLE_SSE