[icinga-checkins] icinga.org: icinga2/feature/cmake-4962: Fix make install on *NIX.

git at icinga.org git at icinga.org
Sat Nov 2 10:42:39 CET 2013


Module: icinga2
Branch: feature/cmake-4962
Commit: a72f06fb4f783ecb0c58469965f5fcdd91fac704
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=a72f06fb4f783ecb0c58469965f5fcdd91fac704

Author: Gunnar Beutner <gunnar at beutner.name>
Date:   Fri Nov  1 19:01:06 2013 +0100

Fix make install on *NIX.

---

 etc/CMakeLists.txt |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/etc/CMakeLists.txt b/etc/CMakeLists.txt
index 8a6b2c1..e9928ad 100644
--- a/etc/CMakeLists.txt
+++ b/etc/CMakeLists.txt
@@ -27,7 +27,7 @@ install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" -E create_symlink ../
 install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" -E create_symlink ../features-available/syslog.conf \"${CMAKE_INSTALL_FULL_SYSCONFDIR}/icinga2/features-enabled/syslog.conf\")")
 
 if(NOT WIN32)
-  configure_file(init.d/icinga2.cmake init.d/icinga2)
+  configure_file(init.d/icinga2.cmake ${CMAKE_CURRENT_BINARY_DIR}/init.d/icinga2)
   install(
     FILES ${CMAKE_CURRENT_BINARY_DIR}/init.d/icinga2
     DESTINATION ${CMAKE_INSTALL_FULL_SYSCONFDIR}/init.d





More information about the icinga-checkins mailing list