Fix WITH_STATIC_LIBRARIES using CMake on Windows

Closes #1369. Thanks to TimmvonderMehden
This commit is contained in:
Roger A. Light
2019-08-06 12:01:29 +01:00
parent 50695f8103
commit a0e7165a9c
6 changed files with 16 additions and 9 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ if (WITH_STATIC_LIBRARIES)
target_link_libraries(mosquittopp_static ${LIBRARIES})
set_target_properties(mosquittopp_static PROPERTIES
OUTPUT_NAME mosquittopp
OUTPUT_NAME mosquittopp_static
VERSION ${VERSION}
)
+1 -1
View File
@@ -17,7 +17,7 @@ Contributors:
#ifndef MOSQUITTOPP_H
#define MOSQUITTOPP_H
#ifdef _WIN32
#if defined(_WIN32) && !defined(LIBMOSQUITTO_STATIC)
# ifdef mosquittopp_EXPORTS
# define mosqpp_EXPORT __declspec(dllexport)
# else