commit | 6d65a1917b5adc3f32a352b06775a6b0be57a582 | [log] [tgz] |
---|---|---|
author | Roger Orr <rogero@howzatt.demon.co.uk> | Mon Mar 30 11:31:21 2020 +0100 |
committer | Daniel Stenberg <daniel@haxx.se> | Mon Mar 30 16:03:27 2020 +0200 |
tree | 84c93ba9b9051b9719f61cd2d3f5a19ec92f579c | |
parent | 8efd26afbfad72d86c665ec79418db3ac4927638 [diff] |
cmake: add CMAKE_MSVC_RUNTIME_LIBRARY Fixes #5165 Closes #5167
diff --git a/CMakeLists.txt b/CMakeLists.txt index e70a6e3..a410d49 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -232,6 +232,7 @@ set(CMAKE_REQUIRED_FLAGS ${CMAKE_ANSI_CFLAGS}) if(CURL_STATIC_CRT) + set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>") set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /MT") set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /MTd") endif()