mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
meson: Define cpp_std in the top-level project()
Due to a bug, meson ignores ${lang}_std settings in default_options for subprojects: https://github.com/mesonbuild/meson/issues/1889 This causes build failures when a subproject requires c++11 or c++14, etc. Compilers that support those cpp_stds are very common, and all the toolchains that we support include c++ compilers, so we can add cpp_std=c++14 to the top-level. This fixes the webrtc-audio-processing build on Linux, and harfbuzz on macOS. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1133>
This commit is contained in:
parent
47a53f5063
commit
40fb39502e
1 changed files with 5 additions and 1 deletions
|
@ -1,7 +1,11 @@
|
|||
project('All GStreamer modules', 'c',
|
||||
version : '1.19.2.1',
|
||||
meson_version : '>= 0.54.0',
|
||||
default_options : ['buildtype=debugoptimized'])
|
||||
default_options : ['buildtype=debugoptimized',
|
||||
# Needed due to https://github.com/mesonbuild/meson/issues/1889,
|
||||
# but this can cause problems in the future. Remove it
|
||||
# when it's no longer necessary.
|
||||
'cpp_std=c++14'])
|
||||
|
||||
gst_version = '>= @0@'.format(meson.project_version())
|
||||
|
||||
|
|
Loading…
Reference in a new issue