meson.build: defaults for "build.c_std" and "build.cpp_std"

Since Meson 0.51, there are special build options for "native:true"
builds, prefixed with "build.".  This change breaks cross builds
because `GenParseName.cxx` is no longer built with `-std=c++17`.

This patch adds defaults for "build.c_std" and "build.cpp_std".

Closes https://github.com/MusicPlayerDaemon/MPD/issues/890
This commit is contained in:
Max Kellermann 2020-07-01 16:37:25 +02:00
parent 3d7147390f
commit e0e5ed62ee
1 changed files with 2 additions and 0 deletions

View File

@ -5,7 +5,9 @@ project(
meson_version: '>= 0.49.0',
default_options: [
'c_std=c99',
'build.c_std=c99',
'cpp_std=c++17',
'build.cpp_std=c++17',
'warning_level=3',
# This is only here to build subprojects as static libraries; MPD