make Curl default option to build on Win as a temp workaround (#753)

* make Curl default option to build on Win as a temp workaround

* Temporarily disable setting WinHTTP as a transport adapter since it
hasn't been implemented yet, to unblock building master.

Co-authored-by: Ahson Khan <ahkha@microsoft.com>
This commit is contained in:
Victor Vazquez 2020-10-14 12:15:56 -07:00 коммит произвёл GitHub
Родитель a2a7d0c0c8
Коммит 74020a397a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 2 добавлений и 8 удалений

Просмотреть файл

@ -9,14 +9,8 @@
# Defines `BUILD_TRANSPORT_WINHTTP_ADAPTER` and `BUILD_CURL_HTTP_TRANSPORT_ADAPTER` for source code
if (WIN32 OR MINGW OR MSYS OR CYGWIN)
if(BUILD_TRANSPORT_CURL)
add_compile_definitions(BUILD_CURL_HTTP_TRANSPORT_ADAPTER)
endif()
# Make sure to build WinHTTP either if was user-requested or no transport was selected at all
if(BUILD_TRANSPORT_WINHTTP OR NOT BUILD_TRANSPORT_CURL)
add_compile_definitions(BUILD_TRANSPORT_WINHTTP_ADAPTER)
SET(BUILD_TRANSPORT_WINHTTP ON)
endif()
add_compile_definitions(BUILD_CURL_HTTP_TRANSPORT_ADAPTER)
SET(BUILD_TRANSPORT_CURL ON)
elseif(UNIX)
if(BUILD_TRANSPORT_WINHTTP)
message(FATAL_ERROR "Win HTTP transport adapter is not supported for Unix platforms")