From 93336adf66dfb75b5d924225713e7e4aa03d0724 Mon Sep 17 00:00:00 2001 From: DDoSolitary Date: Sat, 2 May 2020 13:36:38 +0800 Subject: [PATCH] Fix static linking issues on Windows. --- src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 312dc12a..346ba079 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -115,8 +115,10 @@ list(APPEND DEPS ${LIBMBEDTLS} ${LIBMBEDCRYPTO} ) + if (MINGW) list(APPEND DEPS ws2_32) +add_compile_definitions(CARES_STATICLIB PCRE_STATIC) endif () endif ()