mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
opencv/meson: Ensure variable opencv_found is set
If the required version is not satisfied, we need to make sure this variable is set, otherwise build will fail.
This commit is contained in:
parent
60fa3cab5b
commit
f6929ed1ed
1 changed files with 2 additions and 2 deletions
|
@ -41,9 +41,9 @@ libopencv3_headers = [
|
|||
gstopencv_cargs = ['-DGST_HAAR_CASCADES_DIR="@0@"']
|
||||
|
||||
opencv_dep = dependency('opencv', version : ['>=2.3.0', '<=3.1.0'], required : false)
|
||||
opencv_found = opencv_dep.found()
|
||||
|
||||
if opencv_dep.found()
|
||||
opencv_found = true
|
||||
if opencv_found
|
||||
foreach h : libopencv2_headers
|
||||
if not cxx.has_header(h)
|
||||
message('Needed header "' + h + '" not found')
|
||||
|
|
Loading…
Reference in a new issue