From f23ecf00dad8fd3b2b89c20a0e2c6445e829fa9a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 21 Sep 2021 13:37:20 +0200 Subject: [PATCH] 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 --- meson.build | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index 9eadd1187..52ddff365 100644 --- a/meson.build +++ b/meson.build @@ -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+', )