mirror of
https://git.yoctoproject.org/poky
synced 2026-05-04 13:39:49 +02:00
(From OE-Core rev: f6241428aaf54e540795efc64844cab5acd9629b) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
27 lines
863 B
Diff
27 lines
863 B
Diff
From 3ca6d14fbc6419ff6239b4ba16f77da20fb31d03 Mon Sep 17 00:00:00 2001
|
|
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
|
Date: Thu, 26 Jan 2017 16:25:47 +0200
|
|
Subject: [PATCH] Do not hardcode /etc and systemd unit directories
|
|
|
|
Upstream-Status: Inappropriate [oe-core specific]
|
|
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
|
---
|
|
CMakeLists.txt | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 4aee99fb..9e2e9e9e 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -3,8 +3,8 @@ CMAKE_MINIMUM_REQUIRED (VERSION 2.4)
|
|
|
|
INCLUDE (${CMAKE_SOURCE_DIR}/VERSION.cmake)
|
|
|
|
-SET( SYSCONFDIR /etc)
|
|
-SET( SYSTEMD_DIR /usr/lib/systemd/system)
|
|
+SET( SYSCONFDIR ${CMAKE_INSTALL_SYSCONFDIR})
|
|
+SET( SYSTEMD_DIR $ENV{systemd_system_unitdir})
|
|
|
|
IF (NOT PYTHON_DESIRED)
|
|
FIND_PACKAGE (PythonInterp REQUIRED)
|