diff --git a/atdna/CMakeLists.txt b/atdna/CMakeLists.txt index 1b25983..8f45a8b 100644 --- a/atdna/CMakeLists.txt +++ b/atdna/CMakeLists.txt @@ -54,6 +54,9 @@ else() # Add LLVM static libs list(APPEND CLANG_LIBS clangTooling) + if (LLVM_VERSION_MAJOR GREATER_EQUAL 15) + list(APPEND CLANG_LIBS clangSupport) + endif () list(APPEND LLVM_LIBS LLVMFrontendOpenMP LLVMOption) # Remove LLVM dynamic library from Clang dependencies foreach (lib ${CLANG_LIBS})