opencv: fix OPENCV_PATH_NAME when using meson

Meson was checking for $prefix/OpenCV but was then defining
OPENCV_PATH_NAME with 'OpenCv' rather than 'OpenCV'.

https://bugzilla.gnome.org/show_bug.cgi?id=793212
This commit is contained in:
Guillaume Desmottes 2018-02-06 11:36:27 +01:00 committed by Tim-Philipp Müller
parent fc4fe1c10e
commit 58ce84a3ea

View file

@ -73,7 +73,7 @@ if opencv_found
else else
r = run_command('test', '-d', opencv_prefix + '/share/OpenCV') r = run_command('test', '-d', opencv_prefix + '/share/OpenCV')
if r.returncode() == 0 if r.returncode() == 0
gstopencv_cargs += '-DOPENCV_PATH_NAME="OpenCv"' gstopencv_cargs += '-DOPENCV_PATH_NAME="OpenCV"'
else else
error('Unable to detect OpenCV data directory') error('Unable to detect OpenCV data directory')
endif endif