opencv: suppress warnings about non-existent include dirs
authorTim-Philipp Müller <tim@centricular.com>
Fri, 10 Jul 2020 13:56:50 +0000 (14:56 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 10 Jul 2020 13:57:44 +0000 (14:57 +0100)
Looks like opencv4 ships with a broken .pc file.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1427>

ext/opencv/meson.build

index 8434628..9ee3065 100644 (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' ],