[clang] Add test for CWG190 "Layout-compatible POD-struct types" (#121668)
[llvm-project.git] / llvm / lib / Debuginfod / CMakeLists.txt
blobb1329bd2d077e485a75fde5f940d6c801eae7cb9
1 # Link LibCURL if the user wants it
2 if (LLVM_ENABLE_CURL)
3   set(imported_libs CURL::libcurl)
4 endif()
6 # Link cpp-httplib if the user wants it
7 if (LLVM_ENABLE_HTTPLIB)
8   set(imported_libs ${imported_libs} httplib::httplib)
9 endif()
11 # Make sure pthread is linked if this is a unix host
12 if (CMAKE_HOST_UNIX)
13   set(imported_libs ${imported_libs} ${LLVM_PTHREAD_LIB})
14 endif()
16 # Note: This isn't a component, since that could potentially add a libcurl
17 # dependency to libLLVM.
18 add_llvm_library(LLVMDebuginfod
19   BuildIDFetcher.cpp
20   Debuginfod.cpp
21   HTTPClient.cpp
22   HTTPServer.cpp
24   ADDITIONAL_HEADER_DIRS
25   ${LLVM_MAIN_INCLUDE_DIR}/llvm/Debuginfod
27   LINK_LIBS
28   ${imported_libs}
30   LINK_COMPONENTS
31   Support
32   Symbolize
33   DebugInfoDWARF
34   BinaryFormat
35   Object
36   )