aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backend/meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/meson.build b/backend/meson.build
index b8084448..173b65f6 100644
--- a/backend/meson.build
+++ b/backend/meson.build
@@ -33,11 +33,11 @@ else
backend_files += files('session/direct.c')
endif
-if systemd.found()
+if systemd.found() and get_option('enable_systemd')
backend_files += files('session/logind.c')
endif
-if elogind.found()
+if elogind.found() and get_option('enable_elogind')
backend_files += files('session/logind.c')
endif