opencv: suppress warnings about non-existent include dirs

Looks like opencv4 ships with a broken .pc file.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1427>
This commit is contained in:
Tim-Philipp Müller 2020-07-10 14:56:50 +01:00
parent e86a549b5d
commit 92456967d0

View file

@ -103,6 +103,10 @@ if opencv_found
endif
if opencv_found
# opencv4 seems to ship with .pc file that references non-existent include dir
# (/usr/include/opencv4/opencv instead of /usr/include/opencv4/opencv2)
gstopencv_cargs += cxx.get_supported_arguments(['-Wno-missing-include-dirs'])
gstopencv = library('gstopencv',
gstopencv_sources,
cpp_args : gst_plugins_bad_args + gstopencv_cargs + [ '-DGST_USE_UNSTABLE_API' ],