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

Commit 9cd2a86

Browse files
committed
Add find_dependency to config (ZLIB, TIFF, PNG)
Fix: https://github.com/ruslo/hunter/issues/81
1 parent 3b6d008 commit 9cd2a86

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
@@ -389,3 +389,17 @@ macro(ocv_list_filterout lst regex)
389389
endif()
390390
endforeach()
391391
endmacro()
392+
393+
include(CMakeFindDependencyMacro)
394+
395+
if("@ZLIB_FOUND@")
396+
find_dependency(ZLIB CONFIG)
397+
endif()
398+
399+
if("@TIFF_FOUND@")
400+
find_dependency(TIFF CONFIG)
401+
endif()
402+
403+
if("@PNG_FOUND@")
404+
find_dependency(PNG CONFIG)
405+
endif()

0 commit comments

Comments
 (0)