2022-01-20 01:15:16 +08:00
|
|
|
diff --git a/CMake/FindMbedTLS.cmake b/CMake/FindMbedTLS.cmake
|
2023-10-12 02:10:58 +08:00
|
|
|
index 814bd97..8b17eac 100644
|
2022-01-20 01:15:16 +08:00
|
|
|
--- a/CMake/FindMbedTLS.cmake
|
|
|
|
+++ b/CMake/FindMbedTLS.cmake
|
2023-10-12 02:10:58 +08:00
|
|
|
@@ -28,6 +28,9 @@ find_library(MBEDX509_LIBRARY mbedx509)
|
2022-01-20 01:15:16 +08:00
|
|
|
find_library(MBEDCRYPTO_LIBRARY mbedcrypto)
|
|
|
|
|
|
|
|
set(MBEDTLS_LIBRARIES "${MBEDTLS_LIBRARY}" "${MBEDX509_LIBRARY}" "${MBEDCRYPTO_LIBRARY}")
|
|
|
|
+if(WIN32)
|
|
|
|
+ list(APPEND MBEDTLS_LIBRARIES ws2_32)
|
|
|
|
+endif()
|
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(MbedTLS DEFAULT_MSG
|