From 28d82f7024283e6bc8b2062a50523a851fcb589d Mon Sep 17 00:00:00 2001 From: Jay Zhang Date: Fri, 5 Jan 2024 00:29:54 +0000 Subject: [PATCH] fix: mbedtls >=v3.5.0 build error on windows --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4611f0ca2..b62c3176c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -358,6 +358,9 @@ if (ENABLE_ENCRYPTION) endif() if ("${SSL_LIBRARIES}" STREQUAL "") set (SSL_LIBRARIES mbedtls mbedcrypto) + if (WIN32) + set (SSL_LIBRARIES ${SSL_LIBRARIES} bcrypt) + endif() endif() message(STATUS "SSL enforced mbedtls: -I ${SSL_INCLUDE_DIRS} -l;${SSL_LIBRARIES}")