diff options
author | Patrick Steinhardt <ps@pks.im> | 2018-01-28 16:10:53 +0000 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2018-01-28 16:14:38 +0000 |
commit | 41ec686693821d6d436dae193e675a9b2746a369 (patch) | |
tree | 6671170c37e00ffd1fb67994a55ccf5ba760be90 /backend/meson.build | |
parent | 91c034d164caccf78f143cec82b25eb5ef0ee96d (diff) |
meson: add systemd/elogind backends only if enabled
Right now, we are adding systemd and elogind backends to the build
system as soon as their libraries are found on the build system.
Instead, we should only add them if the libraries have been found _and_
the user has actually requested them to be included.
Diffstat (limited to 'backend/meson.build')
-rw-r--r-- | backend/meson.build | 4 |
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 |