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

Add systemd to the PkgConfig file if it's needed by the lib

This commit is contained in:
Martin Quinson 2025-02-07 11:56:06 +01:00
parent e0c312c202
commit 016b58c58f

View file

@ -307,6 +307,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.