Bump version to 19.1.0git
[llvm-project.git] / clang-tools-extra / clangd / support / CMakeLists.txt
blob0c8c199dd4a4c26aee63bf2acf1fca9f22f7715e
1 # clangd/support contains low-level support libraries that do not depend
2 # on clang either programmatically or conceptually.
4 set(LLVM_LINK_COMPONENTS
5   Support
6   )
8 if(CLANG_BUILT_STANDALONE)
9   # needed to get HAVE_CXX_ATOMICS64_WITHOUT_LIB defined
10   include(CheckAtomic)
11 endif()
13 set(CLANGD_ATOMIC_LIB "")
14 if(NOT HAVE_CXX_ATOMICS_WITHOUT_LIB OR NOT HAVE_CXX_ATOMICS64_WITHOUT_LIB)
15   list(APPEND CLANGD_ATOMIC_LIB "atomic")
16 endif()
18 add_clang_library(clangdSupport
19   Cancellation.cpp
20   Context.cpp
21   FileCache.cpp
22   Logger.cpp
23   Markup.cpp
24   MemoryTree.cpp
25   Path.cpp
26   Shutdown.cpp
27   ThreadCrashReporter.cpp
28   Threading.cpp
29   ThreadsafeFS.cpp
30   Trace.cpp
32   LINK_LIBS
33   ${LLVM_PTHREAD_LIB}
34   ${CLANGD_ATOMIC_LIB}
35   )