From d0feb9d579a5520f408b09bd1168979daed7fc9a Mon Sep 17 00:00:00 2001 From: Elliott Slaughter Date: Wed, 19 Jun 2024 13:51:36 -0700 Subject: [PATCH] Fix LLVM 18 linking. --- cmake/Modules/FindClang.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/Modules/FindClang.cmake b/cmake/Modules/FindClang.cmake index f9466f56..2e89b62b 100644 --- a/cmake/Modules/FindClang.cmake +++ b/cmake/Modules/FindClang.cmake @@ -38,6 +38,9 @@ FIND_AND_ADD_CLANG_LIB(clangBasic) if(LLVM_VERSION_MAJOR GREATER 14) FIND_AND_ADD_CLANG_LIB(clangSupport) endif() +if(LLVM_VERSION_MAJOR GREATER 17) + FIND_AND_ADD_CLANG_LIB(clangAPINotes) +endif() find_path(CLANG_INCLUDE_DIRS clang/Basic/Version.h HINTS ${LLVM_INCLUDE_DIRS})