Update comments for AzureTransportAdapters.cmake (#5001)

* Update comments for AzureTransportAdapters.cmake

* Update cmake-modules/AzureTransportAdapters.cmake

Co-authored-by: Ahson Khan <ahson_ahmedk@yahoo.com>

* Update cmake-modules/AzureTransportAdapters.cmake

Co-authored-by: Ahson Khan <ahson_ahmedk@yahoo.com>

---------

Co-authored-by: Ahson Khan <ahson_ahmedk@yahoo.com>
This commit is contained in:
Anton Kolesnyk 2023-10-03 16:03:43 -07:00 committed by GitHub
parent be478542fb
commit 1d4412cb8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,9 +13,10 @@ endif()
# Defines `BUILD_TRANSPORT_WINHTTP_ADAPTER` and `BUILD_CURL_HTTP_TRANSPORT_ADAPTER` for source code
# On Windows: Make sure to build WinHTTP either if it was user-requested or no transport was selected at all.
# On POSIX: Make sure to build Curl either if it was user-requested or no transport was selected at all.
if (NO_AUTOMATIC_TRANSPORT_BUILD)
# `NO_AUTOMATIC_TRANSPORT_BUILD` is not supported to be used publicly and is only used by vcpkg manifest.
# Vcpkg needs it to be able to build azure-core-cpp[core] which should represent a core that is built without any transport.
# There's no expected scenario where SDK customers only install azure-core-cpp[core].
message("Automatic transport build option detection is disabled.")
if (BUILD_TRANSPORT_CURL)
@ -26,6 +27,9 @@ if (NO_AUTOMATIC_TRANSPORT_BUILD)
add_compile_definitions(BUILD_TRANSPORT_WINHTTP_ADAPTER)
endif()
else()
# On Windows: Make sure to build WinHTTP either if it was user-requested or no transport was selected at all.
# On POSIX: Make sure to build Curl either if it was user-requested or no transport was selected at all.
if (WIN32 OR MINGW OR MSYS OR CYGWIN)
if (BUILD_TRANSPORT_CURL)
# Specified by user on CMake input Libcurl