vcpkg/ports/opencv4/0012-fix-zlib.patch

11 lines
397 B
Diff
Raw Permalink Normal View History

--- a/cmake/OpenCVFindLibsGrfmt.cmake
+++ b/cmake/OpenCVFindLibsGrfmt.cmake
2024-11-12 15:08:28 +08:00
@@ -20,6 +20,7 @@ else()
ocv_clear_vars(ZLIB_FOUND)
else()
ocv_clear_internal_cache_vars(ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
+ find_package(ZLIB "${MIN_VER_ZLIB}" REQUIRED)
if(ANDROID)
2024-11-12 15:08:28 +08:00
set(_zlib_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES})
set(CMAKE_FIND_LIBRARY_SUFFIXES .so)