meson.build: set per-subproject "default_library"

Requires Meson 0.54.0:
 https://mesonbuild.com/Release-notes-for-0-54-0.html#per-subproject-default_library-and-werror-options
This commit is contained in:
Max Kellermann 2021-09-21 13:37:20 +02:00
parent a1c1e26875
commit f23ecf00da
1 changed files with 5 additions and 3 deletions

View File

@ -10,9 +10,11 @@ project(
'build.cpp_std=c++17',
'warning_level=3',
# This is only here to build subprojects as static libraries; MPD
# itself doesn't ship any libraries.
'default_library=static',
# If we build those libraries as Meson subproject, they shall be
# linked statically into the MPD executable.
'fmt:default_library=static',
'gtest:default_library=static',
'sqlite3:default_library=static',
],
license: 'GPLv2+',
)