mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Use multithreaded runtime library under MSVC
This commit is contained in:
parent
b712f00b7e
commit
216c00d7e9
1 changed files with 8 additions and 0 deletions
|
@ -42,6 +42,14 @@ if ( MSVC )
|
||||||
# Set always to static runtime
|
# Set always to static runtime
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
|
||||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")
|
||||||
|
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
|
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDebug")
|
||||||
|
set(CMAKE_MSVC_RUNTIME_LIBRARY_FLAG "MTd")
|
||||||
|
else ()
|
||||||
|
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded")
|
||||||
|
set(CMAKE_MSVC_RUNTIME_LIBRARY_FLAG "MT")
|
||||||
|
endif ()
|
||||||
|
|
||||||
set(OPENSSL_USE_STATIC_LIBS true)
|
set(OPENSSL_USE_STATIC_LIBS true)
|
||||||
set(OPENSSL_MSVC_STATIC_RT true)
|
set(OPENSSL_MSVC_STATIC_RT true)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue