From 927a5f4d757e9eacb6f133ebd45b69db01e9e2f3 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Mon, 18 May 2020 12:47:51 +0200 Subject: cmake: add support for user session semantic on Linux operating systems Systemd user support is controlled by the cmake variable ENABLE_USER_SESSION, which and WITH_SYSTEMD_USERUNITDIR to specify a custom installation location. If WITH_SYSTEMD_USERUNITDIR is not specified, the related install path is determined from an installed systemd package, if present. This was added to the Autotools build system as part of fd.o#61301, but until now was not possible to enable when building with CMake. --- README.cmake | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'README.cmake') diff --git a/README.cmake b/README.cmake index 0b32fdca..7c984430 100644 --- a/README.cmake +++ b/README.cmake @@ -155,6 +155,12 @@ ENABLE_SYSTEMD:STRING=AUTO // Directory for systemd service files WITH_SYSTEMD_SYSTEMUNITDIR:STRING= +// enable user-session semantics for session bus under systemd +ENABLE_USER_SESSION:BOOL=ON + +// Directory for systemd user service files +WITH_SYSTEMD_USERUNITDIR:STRING= + // support verbose debug mode DBUS_ENABLE_VERBOSE_MODE:BOOL=ON -- cgit v1.2.1