mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
opencv: Don't error when unable to detect OpenCV data dir
Instead, mark OpenCV as not found. We error out later if OpenCV was explicitly enabled.
This commit is contained in:
parent
351a3934ec
commit
912214e34f
1 changed files with 5 additions and 1 deletions
|
@ -95,10 +95,14 @@ if opencv_found
|
|||
if r.returncode() == 0
|
||||
gstopencv_cargs += '-DOPENCV_PATH_NAME="opencv4"'
|
||||
else
|
||||
error('Unable to detect OpenCV data directory')
|
||||
message('Unable to detect OpenCV data directory')
|
||||
opencv_found = false
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
if opencv_found
|
||||
gstopencv = library('gstopencv',
|
||||
gstopencv_sources,
|
||||
cpp_args : gst_plugins_bad_args + gstopencv_cargs + [ '-DGST_USE_UNSTABLE_API' ],
|
||||
|
|
Loading…
Reference in a new issue