-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSystemdInstallDirs.cmake
More file actions
44 lines (30 loc) · 1.2 KB
/
SystemdInstallDirs.cmake
File metadata and controls
44 lines (30 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# SPDX-License-Identifier: GPL-3.0-or-later
# Copyright © 2019 Damien Flament
# This file is part of CMake Modules.
#[=======================================================================[.rst:
SystemdInstallDirs
------------------
Define Systemd standard installation directories.
Result Variables
^^^^^^^^^^^^^^^^
Inclusion of this module defines the following variables:
``SYSTEMD_INSTALL_<dir>``
Destination for files of a given type. This value may be passed to
the ``DESTINATION`` options of :command:`install` commands for the
corresponding file type.
where ``<dir>`` is one of:
``SYSTEM_UNITS_DIR``
system units (``LIBDIR/systemd/system``)
``USER_UNITS_DIR``
user units (``LIBDIR/systemd/user``)
#]=======================================================================]
include_guard(GLOBAL)
include(GNUInstallDirs)
set(SYSTEMD_INSTALL_SYSTEM_UNITS_DIR "${CMAKE_INSTALL_LIBDIR}/systemd/system"
CACHE PATH "Systemd system units directory (LIBDIR/systemd/system)")
set(SYSTEMD_INSTALL_USER_UNITS_DIR "${CMAKE_INSTALL_LIBDIR}/systemd/user"
CACHE PATH "Systemd user units directory (LIBDIR/systemd/user)")
mark_as_advanced(
SYSTEMD_INSTALL_SYSTEM_UNITS_DIR
SYSTEMD_INSTALL_USER_UNITS_DIR
)