From 82eb557b0173674146caf7f923efd81a4805cb78 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Sat, 14 Oct 2017 22:41:07 -0700 Subject: [PATCH] Fix link failure on linux with latest LLVM --- atdna/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/atdna/CMakeLists.txt b/atdna/CMakeLists.txt index c46ee5d..7cda927 100644 --- a/atdna/CMakeLists.txt +++ b/atdna/CMakeLists.txt @@ -14,9 +14,13 @@ if(NOT LLVM_FOUND) message(STATUS "Unable to locate LLVM installation; skipping atdna") else() find_library(LLVMDEMANGLE_LIB LLVMDemangle HINTS "${LLVM_ROOT_DIR}/lib") +find_library(LLVMBINARYFORMAT_LIB LLVMBinaryFormat HINTS "${LLVM_ROOT_DIR}/lib") if (NOT LLVMDEMANGLE_LIB) set(LLVMDEMANGLE_LIB "") endif() +if (NOT LLVMBINARYFORMAT_LIB) + set(LLVMBINARYFORMAT_LIB "") +endif() list(APPEND LLVM_LIBS clangFrontend clangTooling @@ -33,7 +37,9 @@ list(APPEND LLVM_LIBS LLVMOption LLVMMCParser LLVMBitReader + ${LLVMBINARYFORMAT_LIB} LLVMMC + LLVMDemangle LLVMProfileData LLVMSupport ${LLVMDEMANGLE_LIB})