This was first discovered by trying to update curl in vcpkg: https://github.com/microsoft/vcpkg/pull/27778 (#4127)
Curl is no longer publishing that it depends on ws2_32 when dynamically linked. Azure Core directly uses Ws2_32 things, so it needs that declared dependency. For example:
90fc46693f/sdk/core/azure-core/src/http/curl/curl.cpp (L165)
This commit is contained in:
parent
90fc46693f
commit
8934b2118f
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user