diff options
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index aa6719b6..f6ac569b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -118,6 +118,10 @@ if (${LLVM_VERSION} VERSION_GREATER_EQUAL "15.0.0") set(clang_support_lib clangSupport) endif() +if (${LLVM_VERSION} VERSION_GREATER_EQUAL "18.0.0") + set(clang_api_notes_lib clangAPINotes) +endif() + macro(link_to_llvm name is_standalone) if (CLAZY_LINK_CLANG_DYLIB) target_link_libraries(${name} clang-cpp) @@ -139,6 +143,7 @@ macro(link_to_llvm name is_standalone) target_link_libraries(${name} clangTooling) target_link_libraries(${name} clangToolingCore) target_link_libraries(${name} ${clang_tooling_refactoring_lib}) + target_link_libraries(${name} ${clang_api_notes_lib}) endif() foreach(llvm_lib ${LLVM_LIBS}) @@ -312,6 +317,7 @@ else() clangStaticAnalyzerCheckers clangStaticAnalyzerCore clangStaticAnalyzerFrontend + ${clang_api_notes_lib} ) add_executable(clazy-standalone ${CLAZY_STANDALONE_SRCS}) |