diff options
author | Cristian Adam <[email protected]> | 2024-02-12 15:43:15 +0100 |
---|---|---|
committer | Cristian Adam <[email protected]> | 2024-02-12 15:05:51 +0000 |
commit | a9b974e57973bf375dc4695ea86c2c8527b97f18 (patch) | |
tree | ad45ed36e240b0c5fdbe9160964e0c22806edd20 | |
parent | 59ca3101ceca8bf3ab0872e943c4588ff550ac0f (diff) |
Change-Id: I4090a66912568b007619d6dacc2f91a9f5466767
Reviewed-by: Alessandro Portale <[email protected]>
-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}) |