diff --git a/meson.build b/meson.build index 45c50bd34..a65ffcbc7 100644 --- a/meson.build +++ b/meson.build @@ -128,7 +128,7 @@ endif if get_option('systemd') systemd = dependency('systemd', required: false) systemd_dep = dependency('libsystemd', required: false) - if systemd.found() + if systemd.found() and systemd_dep.found() cdata.set('HAVE_SYSTEMD_DAEMON', 1) else warning('Systemd integration was enabled, but systemd is not available')