summaryrefslogtreecommitdiff
path: root/src/dbus
diff options
context:
space:
mode:
authorTomasz Kondziola <tkondziola@gmail.com>2015-02-10 08:23:30 +0100
committerAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2015-03-12 14:34:43 +0100
commit236829d03ab066341e5122cfceaf500dea4f0bfb (patch)
tree499f2958784ca5390acf9dae38934281301e39d1 /src/dbus
parentf90a5069f569aefa1c768ec7a336d982073f8ee2 (diff)
downloadDLT-daemon-236829d03ab066341e5122cfceaf500dea4f0bfb.tar.gz
resolves BUG-206: Install prefix should be configurable
Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
Diffstat (limited to 'src/dbus')
-rw-r--r--src/dbus/CMakeLists.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/dbus/CMakeLists.txt b/src/dbus/CMakeLists.txt
index 284a17b..9de3aa7 100644
--- a/src/dbus/CMakeLists.txt
+++ b/src/dbus/CMakeLists.txt
@@ -30,6 +30,9 @@ install(TARGETS dlt-dbus
RUNTIME DESTINATION bin
COMPONENT base)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/dlt-dbus.conf
- DESTINATION /etc
- COMPONENT base)
+if(NOT CMAKE_INSTALL_PREFIX)
+ INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/dlt-dbus.conf DESTINATION /etc COMPONENT base)
+else(CMAKE_INSTALL_PREFIX)
+ INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/dlt-dbus.conf DESTINATION ${CMAKE_INSTALL_PREFIX}/etc COMPONENT base)
+endif(NOT CMAKE_INSTALL_PREFIX)
+