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:
Jan Alexander Steffens (heftig) 2019-10-24 15:40:25 +02:00 committed by Jan Alexander Steffens
parent 351a3934ec
commit 912214e34f

View file

@ -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' ],