mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-21 21:17:51 +08:00
13 lines
376 B
Diff
13 lines
376 B
Diff
|
--- a/cmake/OpenCVFindLibsGrfmt.cmake
|
||
|
+++ b/cmake/OpenCVFindLibsGrfmt.cmake
|
||
|
@@ -5,6 +5,9 @@
|
||
|
# --- zlib (required) ---
|
||
|
if(BUILD_ZLIB)
|
||
|
ocv_clear_vars(ZLIB_FOUND)
|
||
|
+elseif(1)
|
||
|
+ ocv_clear_internal_cache_vars(ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
|
||
|
+ find_package(ZLIB "${MIN_VER_ZLIB}" REQUIRED)
|
||
|
else()
|
||
|
ocv_clear_internal_cache_vars(ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
|
||
|
if(ANDROID)
|