From cf939b096acfca67c87b698827f64d977853d722 Mon Sep 17 00:00:00 2001 From: Forest Date: Sat, 17 Aug 2024 11:22:42 -0700 Subject: [PATCH] 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.) --- cmake/Findclang.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/Findclang.cmake b/cmake/Findclang.cmake index 4dc833af3f..c21fe18837 100644 --- a/cmake/Findclang.cmake +++ b/cmake/Findclang.cmake @@ -18,6 +18,7 @@ if(${LLVM_LINK_MODE} STREQUAL "shared") find_library(CLANG_LIBRARIES NAMES libclang-cpp.so.18 + libclang-cpp.so.18.1 clang-cpp-18.0 clang-cpp180 clang-cpp