diff --git a/meson.build b/meson.build index 4ecfba7d..e2db9b74 100644 --- a/meson.build +++ b/meson.build @@ -108,9 +108,9 @@ if build_modules endif if build_modules - systemd = dependency('systemd', required: get_option('systemd')) - libsystemd_dep = dependency('libsystemd',required: get_option('systemd')) - libelogind_dep = dependency('libelogind', required: get_option('elogind')) + systemd = dependency('systemd', required: get_option('systemd') == 'enabled') + libsystemd_dep = dependency('libsystemd',required: get_option('systemd') == 'enabled') + libelogind_dep = dependency('libelogind', required: get_option('elogind') == 'enabled') summary({'systemd conf data': systemd.found(), 'libsystemd': libsystemd_dep.found(), 'libelogind': libelogind_dep.found()}, bool_yn: true)