From 43736a78009218032230e4745c4dca8d94fba8b2 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Fri, 10 Jul 2020 21:58:23 +0300 Subject: [PATCH] opencv: suppress another warning about non-existent include dirs Ammend to 92456967d0fbdb57f7bf089b06d930b7d30bc417 !1427 The .pc file of opencv4 seems to be broken Part-of: --- gst-libs/gst/opencv/meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/opencv/meson.build b/gst-libs/gst/opencv/meson.build index 80b0531aa0..522f7e5cc3 100644 --- a/gst-libs/gst/opencv/meson.build +++ b/gst-libs/gst/opencv/meson.build @@ -14,10 +14,14 @@ if not opencv_dep.found() opencv_dep = dependency('opencv4', version : '>= 4.0.0', required : false) endif if opencv_dep.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-' + api_version, opencv_sources, c_args : gst_plugins_bad_args + ['-DBUILDING_GST_OPENCV'], - cpp_args : gst_plugins_bad_args + ['-DBUILDING_GST_OPENCV'], + cpp_args : gst_plugins_bad_args + gstopencv_cargs + ['-DBUILDING_GST_OPENCV'], include_directories : [configinc, libsinc], version : libversion, soversion : soversion,