Skip to content
  • Ralf Habacker's avatar
    cmake: Add support for systemd integration on Linux operating systems · 97bdefd4
    Ralf Habacker authored and Simon McVittie's avatar Simon McVittie committed
    Previously, only the Autotools build system could do this. This commit
    includes most of the same features as in the Autotools build, although
    not the user-session semantics, which will be added separately.
    
    Systemd support is controlled by the cmake variable ENABLE_SYSTEMD, which can
    have the values OFF, ON and AUTO, the latter enabling support by default if
    the required libraries are available.
    
    With WITH_SYSTEMD_SYSTEMUNITDIR a custom installation location can be specified.
    If it is not specified, the related install path is determined from the installed
    systemd package, if present.
    97bdefd4