diff options
author | Roger Orr <rogero@howzatt.demon.co.uk> | 2020-03-30 11:31:21 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-03-30 16:03:27 +0200 |
commit | 6d65a1917b5adc3f32a352b06775a6b0be57a582 (patch) | |
tree | 84c93ba9b9051b9719f61cd2d3f5a19ec92f579c /CMakeLists.txt | |
parent | 8efd26afbfad72d86c665ec79418db3ac4927638 (diff) | |
download | curl-6d65a1917b5adc3f32a352b06775a6b0be57a582.tar.gz |
cmake: add CMAKE_MSVC_RUNTIME_LIBRARY
Fixes #5165
Closes #5167
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e70a6e348..a410d4955 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -232,6 +232,7 @@ set(CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}") 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() |