mirror of https://github.com/libAthena/athena.git
Update for clang 3.8+
This commit is contained in:
parent
612f547988
commit
6d8da2bcc0
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue