cmake(android): update zlib alias condition

To use 'z' in Android.mk instead of absolute path from the build machine.
pull/10515/head
Alexander Alekhin 7 years ago
parent bc7923e382
commit 0e6dd32858
  1. 3
      cmake/OpenCVFindLibsGrfmt.cmake

@ -8,8 +8,7 @@ if(BUILD_ZLIB)
else()
find_package(ZLIB "${MIN_VER_ZLIB}")
if(ZLIB_FOUND AND ANDROID)
if(ZLIB_LIBRARIES STREQUAL "${ANDROID_SYSROOT}/usr/lib/libz.so" OR
ZLIB_LIBRARIES STREQUAL "${ANDROID_SYSROOT}/usr/lib64/libz.so")
if(ZLIB_LIBRARIES MATCHES "/usr/(lib|lib32|lib64)/libz.so$")
set(ZLIB_LIBRARIES z)
endif()
endif()

Loading…
Cancel
Save