From 236829d03ab066341e5122cfceaf500dea4f0bfb Mon Sep 17 00:00:00 2001 From: Tomasz Kondziola Date: Tue, 10 Feb 2015 08:23:30 +0100 Subject: resolves BUG-206: Install prefix should be configurable Signed-off-by: Alexander Wenzel --- src/system/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/system/CMakeLists.txt') 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) -- cgit v1.2.1