make systemd dependency optional

Don't recurse into the directory of systemd when it was not found.
There are still some issues because libudev is actually provided
by systemd these days and we still need that for building the v4l2 and
alsa monitors.
This commit is contained in:
Wim Taymans 2017-12-14 09:30:34 +01:00
parent 52d193b3e3
commit 1ace2a5daf
2 changed files with 6 additions and 5 deletions

View file

@ -30,4 +30,8 @@ executable('pipewire',
dependencies : [pipewire_dep],
)
subdir('systemd')
systemd = dependency('systemd', required: false)
if systemd.found()
subdir('systemd')
endif