mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-26 03:43:47 +08:00
Fix WITH_STATIC_LIBRARIES using CMake on Windows
Closes #1369. Thanks to TimmvonderMehden
This commit is contained in:
@@ -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}
|
||||
)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user