Skip to content

Commit

Permalink
Build with MT option and MTd when debug
Browse files Browse the repository at this point in the history
  • Loading branch information
rvishureddy committed Nov 8, 2019
1 parent 436eeb3 commit 39ff1dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,12 @@ else()
add_definitions(-DUSE_OPENSSL)
set(OPENSSL_MSVC_STATIC_RT "true")
if (BUILD_WITH_MD)
set(CMAKE_CXX_FLAGS_RELEASE "/MD")
set(CMAKE_CXX_FLAGS_DEBUG "/MDd")
else()
# If BUILD_WITH_MD is off then we build with /MT option
set(CMAKE_CXX_FLAGS_RELEASE "/MT")
set(CMAKE_CXX_FLAGS_DEBUG "/MT")
else()
set(CMAKE_CXX_FLAGS_RELEASE "/MD")
set(CMAKE_CXX_FLAGS_DEBUG "/MDd")
set(CMAKE_CXX_FLAGS_DEBUG "/MTd")
endif()
#adding extra dependency libraries for windows
set(EXTRA_LIBRARIES ${EXTRA_LIBRARIES} rpcrt4 ws2_32 wldap32 crypt32 normaliz)
Expand Down

0 comments on commit 39ff1dd

Please sign in to comment.