mirror of https://github.com/eclipse/paho.mqtt.c
Add EXPORTS switch to CMake build to properly define Windows functions
This commit is contained in:
parent
83368f3399
commit
db4e507369
|
|
@ -37,7 +37,7 @@ STRING(TIMESTAMP BUILD_TIMESTAMP UTC)
|
||||||
MESSAGE(STATUS "Timestamp is ${BUILD_TIMESTAMP}")
|
MESSAGE(STATUS "Timestamp is ${BUILD_TIMESTAMP}")
|
||||||
|
|
||||||
IF(WIN32)
|
IF(WIN32)
|
||||||
ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE -DWIN32_LEAN_AND_MEAN -MD)
|
ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE -DWIN32_LEAN_AND_MEAN -MD -DMQTT_EXPORTS=1)
|
||||||
ELSEIF(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
|
ELSEIF(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
|
||||||
ADD_DEFINITIONS(-DOSX)
|
ADD_DEFINITIONS(-DOSX)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue