From 81633bef2ab1f651e6ea372a9fe17304d6f257cb Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Fri, 7 Feb 2025 11:56:06 +0100 Subject: [PATCH] PkgConfig: include libsystemd if needed by lib --- lib/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 786fa3d90..8963030f3 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -304,6 +304,13 @@ if (LWS_HAVE_LIBCAP) set(lws_requires "libcap") endif() endif() +if (LWS_HAVE_SYSTEMD_H) + if (NOT lws_requires STREQUAL "") + set(lws_requires "${lws_requires},libsystemd") + else() + set(lws_requires "libsystemd") + endif() +endif() # Generate and install pkgconfig.