meson.build: set cpp_std=c++20

Meson supports this since version 0.57.0.
This commit is contained in:
Max Kellermann 2024-10-30 21:37:17 +01:00
parent 744308bfff
commit 2bc57c38d2
1 changed files with 3 additions and 3 deletions

View File

@ -6,11 +6,11 @@ project(
default_options: [ default_options: [
'c_std=c11', 'c_std=c11',
'build.c_std=c11', 'build.c_std=c11',
'cpp_std=c++2a', 'cpp_std=c++20',
'build.cpp_std=c++2a', 'build.cpp_std=c++20',
'warning_level=3', 'warning_level=3',
'fmt:cpp_std=c++2a', 'fmt:cpp_std=c++20',
# If we build those libraries as Meson subproject, they shall be # If we build those libraries as Meson subproject, they shall be
# linked statically into the MPD executable. # linked statically into the MPD executable.