1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

PkgConfig: include libsystemd if needed by lib

This commit is contained in:
Martin Quinson 2025-02-07 11:56:06 +01:00 committed by Andy Green
parent ab9df9cfc3
commit 81633bef2a

View file

@ -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.