vcpkg/ports/opencv4/0012-fix-zlib.patch
2024-11-11 23:08:28 -08:00

11 lines
397 B
Diff

--- a/cmake/OpenCVFindLibsGrfmt.cmake
+++ b/cmake/OpenCVFindLibsGrfmt.cmake
@@ -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)
set(_zlib_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES})
set(CMAKE_FIND_LIBRARY_SUFFIXES .so)