mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-29 20:44:18 +01:00
85141f17f9
libsystemd which is required by dbus has an optional dependency on liblzma and since we don't need it we can just strip it out of dbus
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})
|