blob: cb09f17a563bffc1da7e78130670e96fdea34d7a [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001From ffb7942cc73c3d2c6aa7c689cdaf9bc0bcbc144b Mon Sep 17 00:00:00 2001
Brad Bishop6e60e8b2018-02-01 10:27:11 -05002From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Thu, 26 Jan 2017 16:25:47 +0200
Brad Bishop19323692019-04-05 15:28:33 -04004Subject: [PATCH] Do not hardcode /etc and systemd unit directories
Brad Bishop6e60e8b2018-02-01 10:27:11 -05005
6Upstream-Status: Inappropriate [oe-core specific]
7Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Brad Bishop316dfdd2018-06-25 12:45:53 -04008
Brad Bishop6e60e8b2018-02-01 10:27:11 -05009---
10 CMakeLists.txt | 4 ++--
11 1 file changed, 2 insertions(+), 2 deletions(-)
12
13diff --git a/CMakeLists.txt b/CMakeLists.txt
Brad Bishop19323692019-04-05 15:28:33 -040014index 73552967..38cf4fbf 100644
Brad Bishop6e60e8b2018-02-01 10:27:11 -050015--- a/CMakeLists.txt
16+++ b/CMakeLists.txt
Brad Bishop19323692019-04-05 15:28:33 -040017@@ -3,8 +3,8 @@ CMAKE_MINIMUM_REQUIRED (VERSION 2.4)
18
19 INCLUDE (${CMAKE_SOURCE_DIR}/VERSION.cmake)
Brad Bishop6e60e8b2018-02-01 10:27:11 -050020
21-SET( SYSCONFDIR /etc)
22-SET( SYSTEMD_DIR /usr/lib/systemd/system)
23+SET( SYSCONFDIR ${CMAKE_INSTALL_SYSCONFDIR})
24+SET( SYSTEMD_DIR $ENV{systemd_system_unitdir})
25
Brad Bishop19323692019-04-05 15:28:33 -040026 IF (NOT PYTHON_DESIRED)
27 FIND_PACKAGE (PythonInterp REQUIRED)