[Bug 1155416] llvm9 package no longer provides libclangIndex.so, libclangFormat.so, etc.
http://bugzilla.opensuse.org/show_bug.cgi?id=1155416 http://bugzilla.opensuse.org/show_bug.cgi?id=1155416#c7 --- Comment #7 from Dan Cermak <dcermak@suse.com> --- (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). -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com