diff --git a/sdk/core/azure-core/CMakeLists.txt b/sdk/core/azure-core/CMakeLists.txt index 04eea7a21..ae4bad15a 100644 --- a/sdk/core/azure-core/CMakeLists.txt +++ b/sdk/core/azure-core/CMakeLists.txt @@ -179,6 +179,9 @@ endif() if(BUILD_TRANSPORT_CURL) target_link_libraries(azure-core PUBLIC CURL::libcurl) + if(WIN32) + target_link_libraries(azure-core PRIVATE Ws2_32) + endif() endif() if(BUILD_TRANSPORT_WINHTTP) target_link_libraries(azure-core PRIVATE winhttp WIL::WIL)