aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-04-07 13:30:18 +0200
committerKenny Levinsen <kl@kl.wtf>2021-04-08 23:07:35 +0200
commit392da918e626641edb337d0afd9c0d72695babed (patch)
tree4a0e07ce740b020c337025d7dd7081aebedad2a7 /meson.build
parent385cc0039db13448856f4241b05d46533dc98b16 (diff)
build: fix logind feature summary when auto-detected
If -Dlogind=auto but systemd/elogind isn't available, logind_provider would get set to the last item of the foreach loop. This would incorrectly report "systemd: YES".
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 5454053..8f7efb2 100644
--- a/meson.build
+++ b/meson.build
@@ -239,6 +239,6 @@ endif
summary({
'seatd': get_option('seatd').enabled(),
'builtin': get_option('builtin').enabled(),
- 'systemd': logind_provider == 'systemd',
- 'elogind': logind_provider == 'elogind',
+ 'systemd': logind.found() and logind_provider == 'systemd',
+ 'elogind': logind.found() and logind_provider == 'elogind',
}, bool_yn: true)