Skip to content

Commit

Permalink
Merge pull request opencv#15373 from pmur:libpng-vsx-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alalek committed Aug 22, 2019
2 parents 56e832e + 8aca193 commit 6bf6d1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 3rdparty/libpng/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ if(";${CPU_BASELINE_FINAL};" MATCHES "SSE2"
endif()

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)
add_definitions(-DPNG_POWERPC_VSX_OPT=2)
else()
Expand Down

0 comments on commit 6bf6d1d

Please sign in to comment.