mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-02-04 06:00:28 +01:00
build: Never make compiler warnings in subprojects fatal
If one of our subprojects has compiler warnings, fixing them is out-of-scope for dbus. Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
0d820a6e17
commit
3ca6a3fec4
1 changed files with 6 additions and 2 deletions
|
|
@ -364,6 +364,10 @@ config.set(
|
|||
and cc.has_header_symbol('time.h', 'clock_getres', args: compile_args_c),
|
||||
)
|
||||
|
||||
fallback_subproject_options = [
|
||||
'werror=false',
|
||||
]
|
||||
|
||||
# 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')
|
||||
|
|
@ -375,7 +379,7 @@ else
|
|||
'glib-2.0', version: '>=2.40',
|
||||
required: get_option('modular_tests'),
|
||||
fallback: ['glib', 'libglib_dep'],
|
||||
default_options: [
|
||||
default_options: fallback_subproject_options + [
|
||||
'tests=false',
|
||||
],
|
||||
)
|
||||
|
|
@ -398,7 +402,7 @@ use_glib = glib.found() and gio.found()
|
|||
if message_bus
|
||||
expat = dependency(
|
||||
'expat',
|
||||
default_options: [
|
||||
default_options: fallback_subproject_options + [
|
||||
'build_tests=false',
|
||||
],
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue