opencv: allow compilation against 4.5.x

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1709>
This commit is contained in:
Nicola Murino 2020-10-18 17:59:44 +02:00 committed by GStreamer Merge Bot
parent b2a0fd9e96
commit 77f28ee3e7

View file

@ -66,7 +66,7 @@ if opencv_found
endif
endforeach
else
opencv_dep = dependency('opencv4', version : ['>= 4.0.0', '< 4.5.0'], required : false)
opencv_dep = dependency('opencv4', version : ['>= 4.0.0', '< 4.6.0'], required : false)
opencv_found = opencv_dep.found()
if opencv_found
foreach h : libopencv4_headers