authorgravatar for forestix@nom.oneForest <forestix@nom.one> 2024-08-17 11:22:42-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-08-17 13:15:32-07:00
logcf939b096acfca67c87b698827f64d977853d722
tree1cde9b9d504b8f42f74ca0948dd8b73672820130
parent5d2bf96c02b766a6ddeb3bd0e8594f2c70c9bfb6

cmake: CLANG_LIBRARIES: find libclang-cpp.so.18.1

This fixes the failure to find CLANG_LIBRARIES on debian, which packages the relevant .so file at these paths: libclang-cpp18: /usr/lib/llvm-18/lib/libclang-cpp.so.18.1 libclang-cpp18: /usr/lib/x86_64-linux-gnu/libclang-cpp.so.18.1 libclang-cpp18: /usr/lib/x86_64-linux-gnu/libclang-cpp.so.18 (The latter two paths are symlinks to the first.)

1 files changed, 1 insertions(+), 0 deletions(-)

cmake/Findclang.cmake+1
...@@ -18,6 +18,7 @@ if(${LLVM_LINK_MODE} STREQUAL "shared")...@@ -18,6 +18,7 @@ if(${LLVM_LINK_MODE} STREQUAL "shared")
18 find_library(CLANG_LIBRARIES18 find_library(CLANG_LIBRARIES
19 NAMES19 NAMES
20 libclang-cpp.so.1820 libclang-cpp.so.18
21 libclang-cpp.so.18.1
21 clang-cpp-18.022 clang-cpp-18.0
22 clang-cpp18023 clang-cpp180
23 clang-cpp24 clang-cpp