mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 09:05:10 +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)
|
if(LLVM_LINK_LLVM_DYLIB)
|
||||||
target_link_libraries(ccls PRIVATE LLVM)
|
target_link_libraries(ccls PRIVATE LLVM)
|
||||||
else()
|
else()
|
||||||
# In llvm 7, clangDriver headers reference LLVMOption
|
|
||||||
target_link_libraries(ccls PRIVATE LLVMOption LLVMSupport)
|
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()
|
endif()
|
||||||
|
|
||||||
if(NOT LLVM_ENABLE_RTTI)
|
if(NOT LLVM_ENABLE_RTTI)
|
||||||
|
Loading…
Reference in New Issue
Block a user