Skip to content

Commit

Permalink
[build] Fix mbedtls >=v3.5.0 build error on windows (#2842).
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyoucao577 authored Jan 8, 2024
1 parent 02acd18 commit 7899f15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}")

Expand Down

0 comments on commit 7899f15

Please sign in to comment.