Skip to content

Commit 7899f15

Browse files
[build] Fix mbedtls >=v3.5.0 build error on windows (#2842).
1 parent 02acd18 commit 7899f15

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎CMakeLists.txt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,9 @@ if (ENABLE_ENCRYPTION)
358358
endif()
359359
if ("${SSL_LIBRARIES}" STREQUAL "")
360360
set (SSL_LIBRARIES mbedtls mbedcrypto)
361+
if (WIN32)
362+
set (SSL_LIBRARIES ${SSL_LIBRARIES} bcrypt)
363+
endif()
361364
endif()
362365
message(STATUS "SSL enforced mbedtls: -I ${SSL_INCLUDE_DIRS} -l;${SSL_LIBRARIES}")
363366

0 commit comments

Comments
 (0)