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?
This commit is contained in:
JinmingHu 2021-01-05 00:59:46 +08:00 committed by GitHub
parent e6a072e7b6
commit da86ed7ec5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")