(In reply to Aaron Puchert from comment #6) > By the way, if your package uses CMake, such a patch might be accepted by > upstream: > > # If not already there... > find_package(Clang CONFIG REQUIRED) > > if (TARGET clang-cpp AND NOT TARGET clangBasic) > target_link_libraries(... PRIVATE clang-cpp) > else() > # Original code: > target_link_libraries(... > PRIVATE > clangBasic > ... > ) > endif() > > That's pretty conservative and uses clang-cpp only if the component > libraries are not available. Thanks! That's more or less what I came up with: https://patch-diff.githubusercontent.com/raw/MaskRay/ccls/pull/518.patch (I've added an additional call to find_library(), didn't know find_package() was enough).