src: Fix pkgconfig generation missing systemd requirement
Change-Id: I529f07c745c04a2b8e2e8bfcca4d64649e010b64
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/meson.build b/src/meson.build
index 5a485e6..59875da 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -31,11 +31,19 @@
include_directories: sdeventplus_headers,
link_with: sdeventplus_lib)
+sdeventplus_reqs = []
+foreach dep : sdeventplus_deps
+ if dep.type_name() == 'pkgconfig'
+ sdeventplus_reqs += dep
+ endif
+endforeach
+
import('pkgconfig').generate(
name: 'sdeventplus',
description: 'C++ systemd event wrapper',
version: meson.project_version(),
- libraries: sdeventplus)
+ libraries: sdeventplus,
+ requires: sdeventplus_reqs)
install_headers(
'sdeventplus/clock.hpp',