mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 07:35:08 +00:00
cmake: support CLANG_LINK_CLANG_DYLIB
This commit is contained in:
parent
0fe8a16504
commit
7e795e9b9e
@ -70,21 +70,25 @@ endif()
|
|||||||
|
|
||||||
find_package(Clang REQUIRED)
|
find_package(Clang REQUIRED)
|
||||||
|
|
||||||
target_link_libraries(ccls PRIVATE
|
if(CLANG_LINK_CLANG_DYLIB)
|
||||||
clangIndex
|
target_link_libraries(ccls PRIVATE clang-cpp)
|
||||||
clangFormat
|
else()
|
||||||
clangTooling
|
target_link_libraries(ccls PRIVATE
|
||||||
clangToolingInclusions
|
clangIndex
|
||||||
clangToolingCore
|
clangFormat
|
||||||
clangFrontend
|
clangTooling
|
||||||
clangParse
|
clangToolingInclusions
|
||||||
clangSerialization
|
clangToolingCore
|
||||||
clangSema
|
clangFrontend
|
||||||
clangAST
|
clangParse
|
||||||
clangLex
|
clangSerialization
|
||||||
clangDriver
|
clangSema
|
||||||
clangBasic
|
clangAST
|
||||||
)
|
clangLex
|
||||||
|
clangDriver
|
||||||
|
clangBasic
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(LLVM_LINK_LLVM_DYLIB)
|
if(LLVM_LINK_LLVM_DYLIB)
|
||||||
target_link_libraries(ccls PRIVATE LLVM)
|
target_link_libraries(ccls PRIVATE LLVM)
|
||||||
|
Loading…
Reference in New Issue
Block a user