Skip to content

Instantly share code, notes, and snippets.

@ganadist
Created April 24, 2020 05:33
Show Gist options
  • Save ganadist/786652fe36c899ad7ebcdb7861b1a09f to your computer and use it in GitHub Desktop.
Save ganadist/786652fe36c899ad7ebcdb7861b1a09f to your computer and use it in GitHub Desktop.
--- opencv-2.4.13.6/cmake/OpenCVFindLibsGrfmt.cmake.bak 2020-04-24 13:33:01.754834282 +0900
+++ opencv-2.4.13.6/cmake/OpenCVFindLibsGrfmt.cmake 2020-04-24 13:33:33.498503698 +0900
@@ -7,12 +7,9 @@
ocv_clear_vars(ZLIB_FOUND)
else()
include(FindZLIB)
- 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(ANDROID)
set(ZLIB_LIBRARY z)
set(ZLIB_LIBRARIES z)
- endif()
endif()
endif()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment