Fix compiling against LLVM <4.0

This commit is contained in:
Phillip Stephens 2016-12-11 12:18:12 -08:00
parent ed7161b7f8
commit b9069f84fe
1 changed files with 5 additions and 1 deletions

View File

@ -13,6 +13,10 @@ include(FindLLVM.cmake)
if(NOT LLVM_FOUND)
message(STATUS "Unable to locate LLVM installation; skipping atdna")
else()
find_library(LLVMDEMANGLE_LIB LLVMDemangle)
if (NOT LLVMDEMANGLE_LIB)
set(LLVMDEMANGLE_LIB "")
endif()
list(APPEND LLVM_LIBS
clangFrontend
clangTooling
@ -31,7 +35,7 @@ list(APPEND LLVM_LIBS
LLVMBitReader
LLVMMC
LLVMProfileData
LLVMDemangle
${LLVMDEMANGLE_LIB}
LLVMSupport)
string(FIND ${LLVM_VERSION_STRING} "svn" SVN_FILTER_IDX)