opencv: Fix build error on macOS

The build fails on macos with the following error:
/usr/local/Cellar/opencv/4.5.0_5/include/opencv4/opencv2/core/mat.hpp:2226:15: error: no template named 'initializer_list' in namespace 'std'
      Mat_(std::initializer_list<_Tp> values);
fatal error: too many errors emitted, stopping now [-ferror-limit=]
 35 warnings and 20 errors generated.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2368>
This commit is contained in:
youngsoo.lee 2021-06-30 13:56:49 +09:00
parent 3b42c1878d
commit 260a82e514

View file

@ -29,6 +29,7 @@ if opencv_dep.found()
opencv_sources,
c_args : gst_plugins_bad_args + ['-DBUILDING_GST_OPENCV'],
cpp_args : gst_plugins_bad_args + gstopencv_cargs + ['-DBUILDING_GST_OPENCV'],
override_options : ['cpp_std=c++11'],
include_directories : [configinc, libsinc],
version : libversion,
soversion : soversion,