diff --git a/meson.build b/meson.build index f46b551c..19d842ce 100644 --- a/meson.build +++ b/meson.build @@ -368,6 +368,12 @@ fallback_subproject_options = [ 'werror=false', ] +if cc.get_id() != 'msvc' + # TODO: Ideally we'd have default_library=static with MSVC too, + # but see https://gitlab.freedesktop.org/dbus/dbus/-/issues/549 + fallback_subproject_options += ['default_library=static'] +endif + # Controls whether message bus daemon is built. Tests which depend on # a running dbus-daemon will be disabled if message_bus is not set. message_bus = get_option('message_bus')