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

Commit 7ff75ab

Browse files
authored
Merge pull request #4 from Ubiquite/hunter-2.4.11
use Jpeg from hunter
2 parents b730196 + 13f4b1a commit 7ff75ab

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

cmake/OpenCVFindLibsGrfmt.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ if(WITH_JPEG)
7575
if(BUILD_JPEG)
7676
ocv_clear_vars(JPEG_FOUND)
7777
else()
78+
hunter_add_package(Jpeg)
7879
include(FindJPEG)
7980
endif()
8081

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)