diff options
author | Tomasz Kondziola <tkondziola@gmail.com> | 2015-02-10 08:23:30 +0100 |
---|---|---|
committer | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2015-03-12 14:34:43 +0100 |
commit | 236829d03ab066341e5122cfceaf500dea4f0bfb (patch) | |
tree | 499f2958784ca5390acf9dae38934281301e39d1 /src/system/CMakeLists.txt | |
parent | f90a5069f569aefa1c768ec7a336d982073f8ee2 (diff) | |
download | DLT-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/system/CMakeLists.txt')
-rw-r--r-- | src/system/CMakeLists.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/system/CMakeLists.txt b/src/system/CMakeLists.txt index ce87914..5b14508 100644 --- a/src/system/CMakeLists.txt +++ b/src/system/CMakeLists.txt @@ -35,6 +35,8 @@ install(TARGETS dlt-system RUNTIME DESTINATION bin COMPONENT base) -INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/dlt-system.conf - DESTINATION /etc - COMPONENT base) +if(NOT CMAKE_INSTALL_PREFIX) + INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/dlt-system.conf DESTINATION /etc COMPONENT base) +else(CMAKE_INSTALL_PREFIX) + INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/dlt-system.conf DESTINATION ${CMAKE_INSTALL_PREFIX}/etc COMPONENT base) +endif(NOT CMAKE_INSTALL_PREFIX) |