Skip to content

Commit

Permalink
cmake: Adapt llvmorg-16-init-15123-gf09cf34d0062 (LLVMTargetParser)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Jan 15, 2023
1 parent 6dc564f commit 2468edc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2468edc

Please sign in to comment.