vcpkg/ports/dbus/libsystemd.patch
Kai Pastor 64a8686c41
[dbus] Use port libsystemd ()
* [dbus] Fix features

* [dbus] Use port libsystemd [skip actions]

* [dbus] Fix libsystemd dependency

* [dbus] libsystemd include dir via target

* [freerdp] Disable libsystemd
2023-11-21 14:16:01 -08:00

16 lines
647 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d3ec71b..932066a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -141,6 +141,10 @@ if(DBUS_LINUX)
if(ENABLE_SYSTEMD AND SYSTEMD_FOUND)
set(DBUS_BUS_ENABLE_SYSTEMD ON)
set(HAVE_SYSTEMD ${SYSTEMD_FOUND})
+ pkg_check_modules(SYSTEMD libsystemd IMPORTED_TARGET)
+ set(SYSTEMD_LIBRARIES PkgConfig::SYSTEMD CACHE INTERNAL "")
+ else()
+ set(SYSTEMD_LIBRARIES "" CACHE INTERNAL "")
endif()
option(ENABLE_USER_SESSION "enable user-session semantics for session bus under systemd" OFF)
set(DBUS_ENABLE_USER_SESSION ${ENABLE_USER_SESSION})