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