Skip to content

Commit

Permalink
💩 Do not disable build if systemd is missing (#107)
Browse files Browse the repository at this point in the history
I meant to make systemd an optional dependency, but I used meson's `disabler()` which actually recursively disables any parts of the build it is included in. So the main `.so` would not build if you didn't have libsystemd-dev installed.

Fixes #103
  • Loading branch information
danstiner authored Mar 12, 2021
1 parent 1898e28 commit 9315b8b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ spdlog_wrap = subproject('spdlog', default_options: ['default_library=static', '
systemd_dep = dependency('libsystemd', required : get_option('systemd_watchdog_support'))
if systemd_dep.found()
add_project_arguments('-DSYSTEMD_WATCHDOG_SUPPORT', language: 'cpp')
else
systemd_dep = disabler()
endif

deps = [
Expand Down

0 comments on commit 9315b8b

Please sign in to comment.