Update for clang 3.8+

This commit is contained in:
Jack Andersen 2016-06-27 12:54:55 -10:00
parent 612f547988
commit 6d8da2bcc0
1 changed files with 11 additions and 1 deletions

View File

@ -25,12 +25,22 @@ list(APPEND LLVM_LIBS
clangAST clangAST
clangLex clangLex
clangBasic clangBasic
LLVMCore
LLVMOption LLVMOption
LLVMMCParser LLVMMCParser
LLVMBitReader LLVMBitReader
LLVMMC LLVMMC
LLVMProfileData
LLVMSupport) LLVMSupport)
set(CLANG_INCLUDE_DIR ${LLVM_LIBRARY_DIRS}/clang/${LLVM_VERSION_STRING}/include
string(FIND ${LLVM_VERSION_STRING} "svn" SVN_FILTER_IDX)
if(NOT SVN_FILTER_IDX EQUAL -1)
string(SUBSTRING ${LLVM_VERSION_STRING} 0 ${SVN_FILTER_IDX} LLVM_VERSION_BASE)
else()
set(LLVM_VERSION_BASE ${LLVM_VERSION_STRING})
endif()
set(CLANG_INCLUDE_DIR ${LLVM_LIBRARY_DIRS}/clang/${LLVM_VERSION_BASE}/include
CACHE PATH "Clang include dir" FORCE) CACHE PATH "Clang include dir" FORCE)
if(UNIX) if(UNIX)