From d56da32a16a8bcdbee8bc068944fcde25c88a2ae Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Wed, 9 Jul 2014 17:20:23 +0200 Subject: [PATCH] Use CMAKE_INSTALL_FULL_SYSCONFDIR for ICINGA2_SYSCONFIGFILE variable fixes #6657 --- etc/initsystem/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/initsystem/CMakeLists.txt b/etc/initsystem/CMakeLists.txt index b7810e06d..83baca33c 100644 --- a/etc/initsystem/CMakeLists.txt +++ b/etc/initsystem/CMakeLists.txt @@ -17,7 +17,7 @@ if(NOT WIN32) if(NOT DEFINED ICINGA2_SYSCONFIGFILE) - set(ICINGA2_SYSCONFIGFILE "${CMAKE_INSTALL_SYSCONFDIR}/sysconfig/icinga2" CACHE PATH "where to store configuation for the init system, defaults to /etc/sysconfig/icinga2") + set(ICINGA2_SYSCONFIGFILE "${CMAKE_INSTALL_FULL_SYSCONFDIR}/sysconfig/icinga2" CACHE PATH "where to store configuation for the init system, defaults to /etc/sysconfig/icinga2") endif() configure_file(icinga2.sysconfig.cmake ${CMAKE_CURRENT_BINARY_DIR}/initsystem/icinga2.sysconfig @ONLY)