mirror of
https://github.com/opencv/opencv.git
synced 2025-01-19 06:53:50 +08:00
cmake: fix libpng for AARCH64
This commit is contained in:
parent
bdf661538d
commit
a50bc7d824
2
3rdparty/libpng/CMakeLists.txt
vendored
2
3rdparty/libpng/CMakeLists.txt
vendored
@ -31,6 +31,8 @@ file(GLOB lib_hdrs *.h)
|
|||||||
if(ENABLE_NEON)
|
if(ENABLE_NEON)
|
||||||
list(APPEND lib_srcs arm/arm_init.c arm/filter_neon.S arm/filter_neon_intrinsics.c)
|
list(APPEND lib_srcs arm/arm_init.c arm/filter_neon.S arm/filter_neon_intrinsics.c)
|
||||||
add_definitions(-DPNG_ARM_NEON_OPT=2)
|
add_definitions(-DPNG_ARM_NEON_OPT=2)
|
||||||
|
elseif(AARCH64)
|
||||||
|
add_definitions(-DPNG_ARM_NEON_OPT=0) # NEON assembler is not supported
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ENABLE_SSE
|
if(ENABLE_SSE
|
||||||
|
Loading…
Reference in New Issue
Block a user