]> granicus.if.org Git - icinga2/commitdiff
Install runtime libraries in sbin on Windows.
authorGunnar Beutner <gunnar@beutner.name>
Sat, 19 Apr 2014 00:05:54 +0000 (02:05 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Sat, 19 Apr 2014 00:05:54 +0000 (02:05 +0200)
Refs #4865

CMakeLists.txt

index 4470a82897f2bdb861d0a9a56d68781b3f7b585c..97306213aa8a393f42d203b2653ac2867eaf1ec7 100644 (file)
@@ -65,7 +65,14 @@ if(MSVC)
   set(CPACK_NSIS_EXECUTABLES_DIRECTORY "sbin")
   set(CPACK_PACKAGE_EXECUTABLES "Icinga2SetupAgent;Icinga 2 Agent Wizard")
   set(CPACK_NSIS_MUI_FINISHPAGE_RUN "Icinga2SetupAgent")
+
+  set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP TRUE)
   include(InstallRequiredSystemLibraries)
+
+  install(
+    PROGRAMS ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS}
+    DESTINATION ${CMAKE_INSTALL_SBINDIR}
+  )
 endif()
 
 include(CPack)