mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 11:49:07 +08:00
64a8686c41
* [dbus] Fix features * [dbus] Use port libsystemd [skip actions] * [dbus] Fix libsystemd dependency * [dbus] libsystemd include dir via target * [freerdp] Disable libsystemd
16 lines
647 B
Diff
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})
|