build: Make libsystemd an optional dependency

Otherwise it errors out before checking for elogind instead

https://gitlab.gnome.org/GNOME/mutter/merge_requests/491
This commit is contained in:
Tom Briden 2019-03-11 19:49:41 +00:00 committed by Georges Basile Stavracas Neto
parent 318164779c
commit 2ac7f7f1e5

View File

@ -178,7 +178,7 @@ if have_native_backend
libgbm_dep = dependency('gbm', version: gbm_req) libgbm_dep = dependency('gbm', version: gbm_req)
libinput_dep = dependency('libinput', version: libinput_req) libinput_dep = dependency('libinput', version: libinput_req)
libsystemd_dep = dependency('libsystemd') libsystemd_dep = dependency('libsystemd', required: false)
if libsystemd_dep.found() if libsystemd_dep.found()
logind_provider_dep = libsystemd_dep logind_provider_dep = libsystemd_dep
else else