зеркало из https://github.com/microsoft/clang-1.git
Fix cmake build with -DBUILD_SHARED_LIBS=ON.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147338 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
df49782c54
Коммит
63d32bdf89
|
@ -1,5 +1,4 @@
|
||||||
# TODO: This must need some dependencies, but it builds fine without them.
|
set(LLVM_USED_LIBS clangSema)
|
||||||
#set(LLVM_USED_LIBS ???)
|
|
||||||
|
|
||||||
add_clang_library(clangSerialization
|
add_clang_library(clangSerialization
|
||||||
ASTCommon.h
|
ASTCommon.h
|
||||||
|
|
|
@ -3,7 +3,7 @@ clang_tablegen(Checkers.inc -gen-clang-sa-checkers
|
||||||
SOURCE Checkers.td
|
SOURCE Checkers.td
|
||||||
TARGET ClangSACheckers)
|
TARGET ClangSACheckers)
|
||||||
|
|
||||||
set(LLVM_USED_LIBS clangBasic clangAST)
|
set(LLVM_USED_LIBS clangBasic clangAST clangStaticAnalyzerCore)
|
||||||
|
|
||||||
add_clang_library(clangStaticAnalyzerCheckers
|
add_clang_library(clangStaticAnalyzerCheckers
|
||||||
AdjustedReturnValueChecker.cpp
|
AdjustedReturnValueChecker.cpp
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
set(LLVM_NO_RTTI 1)
|
set(LLVM_NO_RTTI 1)
|
||||||
|
|
||||||
set(LLVM_USED_LIBS clangBasic clangLex clangAST clangFrontend clangRewrite)
|
set(LLVM_USED_LIBS clangBasic clangLex clangAST clangFrontend clangRewrite
|
||||||
|
clangStaticAnalyzerCheckers)
|
||||||
|
|
||||||
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/../Checkers )
|
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/../Checkers )
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче