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

Commit 13f4b1a

Browse files
authored
add find_dependency JPEG in cmake templates
"so this dependency can be discovered automatically"
1 parent 1700e76 commit 13f4b1a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmake/templates/OpenCVConfig.cmake.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,3 +361,9 @@ macro(ocv_list_filterout lst regex)
361361
endif()
362362
endforeach()
363363
endmacro()
364+
365+
include(CMakeFindDependencyMacro)
366+
367+
if("@JPEG_FOUND@")
368+
find_dependency(JPEG CONFIG)
369+
endif()

0 commit comments

Comments
 (0)