mirror of
https://github.com/opencv/opencv.git
synced 2025-06-08 01:53:19 +08:00
Merge pull request #15373 from pmur:libpng-vsx-fix
This commit is contained in:
commit
6bf6d1dc6b
4
3rdparty/libpng/CMakeLists.txt
vendored
4
3rdparty/libpng/CMakeLists.txt
vendored
@ -47,7 +47,9 @@ if(";${CPU_BASELINE_FINAL};" MATCHES "SSE2"
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(PPC64LE OR PPC64)
|
if(PPC64LE OR PPC64)
|
||||||
if(ENABLE_VSX AND NOT PPC64)
|
# VSX3 features are backwards compatible
|
||||||
|
if(";${CPU_BASELINE_FINAL};" MATCHES "VSX.*"
|
||||||
|
AND NOT PPC64)
|
||||||
list(APPEND lib_srcs powerpc/powerpc_init.c powerpc/filter_vsx_intrinsics.c)
|
list(APPEND lib_srcs powerpc/powerpc_init.c powerpc/filter_vsx_intrinsics.c)
|
||||||
add_definitions(-DPNG_POWERPC_VSX_OPT=2)
|
add_definitions(-DPNG_POWERPC_VSX_OPT=2)
|
||||||
else()
|
else()
|
||||||
|
Loading…
Reference in New Issue
Block a user