mirror of https://github.com/eclipse/paho.mqtt.c
Update CMakeLists.txt
remove '-MD' in ADD_DEFINITIONS command. why add the -MD? this -MD forcible control MSVC generate code with /MD option if user want to compile with /MT by set option -DCMAKE_USER_MAKE_RULES_OVERRIDE=compiler_flag_overrides.cmake in command line, the '-MD' definition cause it not work;
This commit is contained in:
parent
2485e0e80a
commit
bd1c9e598a
|
|
@ -37,7 +37,7 @@ STRING(TIMESTAMP BUILD_TIMESTAMP UTC)
|
|||
MESSAGE(STATUS "Timestamp is ${BUILD_TIMESTAMP}")
|
||||
|
||||
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)
|
||||
ELSEIF(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
|
||||
ADD_DEFINITIONS(-DOSX)
|
||||
ENDIF()
|
||||
|
|
|
|||
Loading…
Reference in New Issue