Compare commits

1 Commits

Author SHA1 Message Date
42e54b3dab fix building with -Dsystemd=auto and no systemd
`-Dsystemd=auto` previously worked only if systemd was present, i.e.
synonymous to `-Dsystemd=enabled`. otherwise, the build would error:

```
> Run-time dependency systemd found: NO (tried pkgconfig)
>
> meson.build:111:12: ERROR: Dependency "systemd" not found, tried pkgconfig
```
2024-05-30 15:17:58 +00:00

View File

@@ -108,12 +108,14 @@ if build_modules
endif endif
if build_modules if build_modules
systemd = dependency('systemd', required: get_option('systemd')) summary({'systemd conf data required?': get_option('systemd'),
libsystemd_dep = dependency('libsystemd',required: get_option('systemd')) 'elogind': get_option('elogind')})
libelogind_dep = dependency('libelogind', required: get_option('elogind')) systemd = dependency('systemd', required: false)
summary({'systemd conf data': systemd.found(), libsystemd_dep = dependency('libsystemd', required: false)
'libsystemd': libsystemd_dep.found(), libelogind_dep = dependency('libelogind', required: false)
'libelogind': libelogind_dep.found()}, bool_yn: true) # summary({'systemd conf data': systemd.found(),
# 'libsystemd': libsystemd_dep.found(),
# 'libelogind': libelogind_dep.found()}, bool_yn: true)
endif endif
gnome = import('gnome') gnome = import('gnome')