mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-21 15:15:07 +00:00
cmake: Adapt llvmorg-16-init-15123-gf09cf34d0062 (LLVMTargetParser)
This commit is contained in:
parent
6dc564f2a8
commit
2468edc0b3
@ -94,8 +94,10 @@ endif()
|
||||
if(LLVM_LINK_LLVM_DYLIB)
|
||||
target_link_libraries(ccls PRIVATE LLVM)
|
||||
else()
|
||||
# In llvm 7, clangDriver headers reference LLVMOption
|
||||
target_link_libraries(ccls PRIVATE LLVMOption LLVMSupport)
|
||||
if(LLVM_VERSION_MAJOR GREATER_EQUAL 16) # llvmorg-16-init-15123-gf09cf34d0062
|
||||
target_link_libraries(ccls PRIVATE LLVMTargetParser)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT LLVM_ENABLE_RTTI)
|
||||
|
Loading…
Reference in New Issue
Block a user