vcpkg/ports/azure-core-cpp/add-ws232.patch
Lova Widmark b224213946
[curl] Update to 7.86.0 (#27778)
* [curl] Update to 7.86.0

* [azure-core-cpp] Add missing Ws2_32.lib.

Filed upstream as https://github.com/Azure/azure-sdk-for-cpp/pull/4127

* [aws-sdk-cpp] Lock the selected curl features.

Co-authored-by: FrankXie <v-frankxie@microsoft.com>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2022-11-21 09:13:49 -08:00

15 lines
480 B
Diff

diff --git a/sdk/core/azure-core/CMakeLists.txt b/sdk/core/azure-core/CMakeLists.txt
index c536948..c94441b 100644
--- a/sdk/core/azure-core/CMakeLists.txt
+++ b/sdk/core/azure-core/CMakeLists.txt
@@ -170,6 +170,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)