2021-12-07 02:28:07 +08:00
|
|
|
# Link LibCURL if the user wants it
|
|
|
|
if (LLVM_ENABLE_CURL)
|
2021-12-09 08:51:33 +08:00
|
|
|
set(imported_libs CURL::libcurl)
|
2021-12-07 02:28:07 +08:00
|
|
|
endif()
|
|
|
|
|
2022-01-26 06:23:38 +08:00
|
|
|
# Note: This isn't a component, since that could potentially add a libcurl
|
|
|
|
# dependency to libLLVM.
|
|
|
|
add_llvm_library(LLVMDebuginfod
|
2021-12-07 05:46:22 +08:00
|
|
|
Debuginfod.cpp
|
2022-01-26 06:23:38 +08:00
|
|
|
DIFetcher.cpp
|
2021-12-07 02:28:07 +08:00
|
|
|
HTTPClient.cpp
|
2021-12-07 05:46:22 +08:00
|
|
|
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
|
|
${LLVM_MAIN_INCLUDE_DIR}/llvm/Debuginfod
|
|
|
|
|
2021-12-07 02:28:07 +08:00
|
|
|
LINK_LIBS
|
|
|
|
${imported_libs}
|
|
|
|
|
2021-12-07 05:46:22 +08:00
|
|
|
LINK_COMPONENTS
|
|
|
|
Support
|
2022-02-21 04:32:38 +08:00
|
|
|
Symbolize
|
2021-12-07 05:46:22 +08:00
|
|
|
)
|