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

(cherry picked from commit 55a9fdf051)
This commit is contained in:
Aaron Simmons
2015-10-13 17:42:40 -06:00
committed by Alexander Smorkalov
parent 2d3e170370
commit ca50969c2b

View File

@@ -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()