From da86ed7ec5203b55a1a30bf67b5816d8449a5b2f Mon Sep 17 00:00:00 2001 From: JinmingHu Date: Tue, 5 Jan 2021 00:59:46 +0800 Subject: [PATCH] rename WinHTTP CMake target (#1240) # Pull Request Checklist Please leverage this checklist as a reminder to address commonly occurring feedback when submitting a pull request to make sure your PR can be reviewed quickly: See the detailed list in the [contributing guide](https://github.com/Azure/azure-sdk-for-cpp/blob/master/CONTRIBUTING.md#pull-requests). - [x] [C++ Guidelines](https://azure.github.io/azure-sdk/cpp_introduction.html) - [x] Doxygen docs - [x] Unit tests - [x] No unwanted commits/changes - [x] Descriptive title/description - [x] PR is single purpose - [x] Related issue listed - [x] Comments in source - [x] No typos - [x] Update changelog - [x] Not work-in-progress - [x] External references or docs updated - [x] Self review of PR done - [x] Any breaking changes? --- sdk/core/azure-core/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sdk/core/azure-core/CMakeLists.txt b/sdk/core/azure-core/CMakeLists.txt index 0e7ffafd0..76bcf71b4 100644 --- a/sdk/core/azure-core/CMakeLists.txt +++ b/sdk/core/azure-core/CMakeLists.txt @@ -126,8 +126,7 @@ if(BUILD_TRANSPORT_CURL) target_link_libraries(azure-core PRIVATE CURL::libcurl) endif() if(BUILD_TRANSPORT_WINHTTP) - SET(WIN_HTTP_LIB Winhttp.lib) - target_link_libraries(azure-core PRIVATE ${WIN_HTTP_LIB}) + target_link_libraries(azure-core PRIVATE winhttp) endif() get_az_version("${CMAKE_CURRENT_SOURCE_DIR}/inc/azure/core/version.hpp")