From b6dc98215a4ba29937dad021271fc0e0eb3f25ea Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Tue, 30 Apr 2019 14:33:18 +0100 Subject: [PATCH] Windows build fixes. --- installer/mosquitto64.nsi | 2 +- lib/CMakeLists.txt | 2 +- lib/cpp/CMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/installer/mosquitto64.nsi b/installer/mosquitto64.nsi index e254787f..d193a085 100644 --- a/installer/mosquitto64.nsi +++ b/installer/mosquitto64.nsi @@ -82,7 +82,7 @@ Section "Files" SecInstall SectionEnd Section "Service" SecService - ExeWait '"$INSTDIR\mosquitto.exe" install' + ExecWait '"$INSTDIR\mosquitto.exe" install' SectionEnd Section "Uninstall" diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 610e57d8..221c2307 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -89,7 +89,7 @@ set_target_properties(libmosquitto PROPERTIES SOVERSION 1 ) -install(TARGETS libmosquitto LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}") +install(TARGETS libmosquitto RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}") if (WITH_STATIC_LIBRARIES) add_library(libmosquitto_static STATIC ${C_SRC}) diff --git a/lib/cpp/CMakeLists.txt b/lib/cpp/CMakeLists.txt index 7c4daebc..89eb560f 100644 --- a/lib/cpp/CMakeLists.txt +++ b/lib/cpp/CMakeLists.txt @@ -13,7 +13,7 @@ set_target_properties(mosquittopp PROPERTIES VERSION ${VERSION} SOVERSION 1 ) -install(TARGETS mosquittopp LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}") +install(TARGETS mosquittopp RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}") if (WITH_STATIC_LIBRARIES) add_library(mosquittopp_static STATIC