brining over fix in master (#4140) for libz import on 64-bit android

(cherry picked from commit 55a9fdf051)
pull/6448/head^2
Aaron Simmons 9 years ago committed by Alexander Smorkalov
parent 2d3e170370
commit ca50969c2b
  1. 3
      cmake/OpenCVFindLibsGrfmt.cmake

@ -8,7 +8,8 @@ if(BUILD_ZLIB)
else()
include(FindZLIB)
if(ZLIB_FOUND AND ANDROID)
if(ZLIB_LIBRARY STREQUAL "${ANDROID_SYSROOT}/usr/lib/libz.so")
if(ZLIB_LIBRARIES STREQUAL "${ANDROID_SYSROOT}/usr/lib/libz.so" OR
ZLIB_LIBRARIES STREQUAL "${ANDROID_SYSROOT}/usr/lib64/libz.so")
set(ZLIB_LIBRARY z)
set(ZLIB_LIBRARIES z)
endif()

Loading…
Cancel
Save