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:
10km 2022-01-05 11:10:50 +08:00 committed by Ian Craggs
parent 2485e0e80a
commit bd1c9e598a
1 changed files with 1 additions and 1 deletions

View File

@ -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()