blob: 9dab6ad200066fe6fc9bf128cbe65bb2bf2e87e3 [file] [edit]
# Link LibCURL if the user wants it
if (LLVM_ENABLE_CURL)
set(imported_libs CURL::libcurl)
endif()
# Link cpp-httplib if the user wants it
if (LLVM_ENABLE_HTTPLIB)
set(imported_libs ${imported_libs} httplib::httplib)
endif()
# Use WinHTTP on Windows
if (WIN32)
set(imported_libs ${imported_libs} winhttp.lib crypt32.lib)
endif()
# This is no component library so the LLVM dylib does not gain a dependency on curl
add_llvm_library(LLVMHTTP
HTTPClient.cpp
HTTPServer.cpp
StreamedHTTPResponseHandler.cpp
LINK_LIBS
${imported_libs}
LINK_COMPONENTS
Support
)