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:
parent
ab9df9cfc3
commit
81633bef2a
1 changed files with 7 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue