Skip to content

Commit

Permalink
opencv: Fix dependency structure
Browse files Browse the repository at this point in the history
The `opencv_objdetect` library is build even with `dnn` disabled.
  • Loading branch information
Martin Lambertsen committed Jan 13, 2023
1 parent 95b81f8 commit 40ab4c9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions recipes/opencv/4.x/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,7 @@ def ipp():
{"target": "opencv_highgui", "lib": "highgui", "requires": ["opencv_core", "opencv_imgproc", "opencv_imgcodecs", "opencv_videoio"] + freetype() + eigen() + gtk() + ipp()},
{"target": "opencv_stitching", "lib": "stitching", "requires": ["opencv_core", "opencv_flann", "opencv_imgproc", "opencv_features2d", "opencv_calib3d"] + xfeatures2d() + eigen() + ipp()},
{"target": "opencv_video", "lib": "video", "requires": ["opencv_core", "opencv_flann", "opencv_imgproc", "opencv_features2d", "opencv_calib3d"] + eigen() + ipp()},
{"target": "opencv_objdetect", "lib": "objdetect", "requires": ["opencv_core", "opencv_flann", "opencv_imgproc", "opencv_features2d", "opencv_calib3d"] + eigen() + quirc() + ipp()},
]
if self.options.with_ipp == "opencv-icv" and not self.options.shared:
opencv_components.extend([
Expand All @@ -624,8 +625,6 @@ def ipp():
if self.options.dnn:
opencv_components.extend([
{"target": "opencv_dnn", "lib": "dnn", "requires": ["opencv_core", "opencv_imgproc"] + protobuf() + ipp()},
{"target": "opencv_objdetect", "lib": "objdetect", "requires": ["opencv_core", "opencv_flann", "opencv_imgproc", "opencv_features2d", "opencv_calib3d"] + eigen() + quirc() + ipp()},

])
if self.options.contrib:
opencv_components.extend([
Expand Down

0 comments on commit 40ab4c9

Please sign in to comment.