Skip to content
This repository was archived by the owner on Mar 22, 2020. It is now read-only.

Commit 56379cc

Browse files
committed
Add find_dependency to config (ZLIB, TIFF, PNG)
Fix: https://github.com/ruslo/hunter/issues/81
1 parent 10d0ceb commit 56379cc

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

cmake/templates/OpenCVConfig.cmake.in

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,3 +411,17 @@ macro(ocv_list_filterout lst regex)
411411
endif()
412412
endforeach()
413413
endmacro()
414+
415+
include(CMakeFindDependencyMacro)
416+
417+
if("@ZLIB_FOUND@")
418+
find_dependency(ZLIB CONFIG)
419+
endif()
420+
421+
if("@TIFF_FOUND@")
422+
find_dependency(TIFF CONFIG)
423+
endif()
424+
425+
if("@PNG_FOUND@")
426+
find_dependency(PNG CONFIG)
427+
endif()

0 commit comments

Comments
 (0)