1# Link LibCURL if the user wants it 2if (LLVM_ENABLE_CURL) 3 set(imported_libs CURL::libcurl) 4endif() 5 6# Link cpp-httplib if the user wants it 7if (LLVM_ENABLE_HTTPLIB) 8 set(imported_libs ${imported_libs} httplib::httplib) 9endif() 10 11# Make sure pthread is linked if this is a unix host 12if (CMAKE_HOST_UNIX) 13 set(imported_libs ${imported_libs} ${LLVM_PTHREAD_LIB}) 14endif() 15 16# Note: This isn't a component, since that could potentially add a libcurl 17# dependency to libLLVM. 18add_llvm_library(LLVMDebuginfod 19 BuildIDFetcher.cpp 20 Debuginfod.cpp 21 HTTPClient.cpp 22 HTTPServer.cpp 23 24 ADDITIONAL_HEADER_DIRS 25 ${LLVM_MAIN_INCLUDE_DIR}/llvm/Debuginfod 26 27 LINK_LIBS 28 ${imported_libs} 29 30 LINK_COMPONENTS 31 Support 32 Symbolize 33 DebugInfoDWARF 34 BinaryFormat 35 Object 36 ) 37