meson: Define cpp_std in the top-level project()
authorNirbheek Chauhan <nirbheek@centricular.com>
Wed, 13 Oct 2021 08:05:51 +0000 (13:35 +0530)
committerSeungha Yang <seungha@centricular.com>
Sun, 17 Oct 2021 09:36:09 +0000 (09:36 +0000)
commit40fb39502ea497ea7be4d1d03a5c6bae8dd8b871
treee390f0603b657f7bfe403a169d0cd38199601e96
parent47a53f50637965919447f721b3956b974a2a0afd
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>
meson.build