opencv: Make the OpenCV plugin optional in the meson build

This commit is contained in:
Sebastian Dröge 2016-11-27 11:56:18 +02:00
parent 5a6b121d5b
commit 7488a8fb35

View file

@ -36,7 +36,7 @@ else
opencv_cargs += '-DOPENCV_PATH_NAME="OpenCv"'
endif
opencv_dep = dependency('opencv', version : '>= 2.3.0')
opencv_dep = dependency('opencv', version : '>= 2.3.0', required : false)
if opencv_dep.found()
gstopencv = library('gstopencv',
opencv_sources,