opencv: patch to ensure headers are detected

This patch is used to ensure opencv headers are detected.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2454>
This commit is contained in:
Vivek R 2020-05-25 10:35:30 +05:30 committed by GStreamer Marge Bot
parent 11a151ef80
commit 3764a1617d

View file

@ -65,7 +65,9 @@ if opencv_found
opencv_found = false opencv_found = false
endif endif
endforeach endforeach
else endif
if not opencv_found
opencv_dep = dependency('opencv4', version : ['>= 4.0.0', '< 4.6.0'], required : false) opencv_dep = dependency('opencv4', version : ['>= 4.0.0', '< 4.6.0'], required : false)
opencv_found = opencv_dep.found() opencv_found = opencv_dep.found()
if opencv_found if opencv_found