Skip to content
Snippets Groups Projects
Commit 53c3f9fc authored by NAKAMURA Takumi's avatar NAKAMURA Takumi
Browse files

[CMake] Use LINK_LIBS instead of target_link_libraries().

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202238 91177308-0d34-0410-b5e6-96231b3b80d8
parent 7c0d9a71
No related branches found
No related tags found
No related merge requests found
Showing
with 32 additions and 48 deletions
...@@ -23,9 +23,8 @@ add_clang_library(clangARCMigrate ...@@ -23,9 +23,8 @@ add_clang_library(clangARCMigrate
TransZeroOutPropsInDealloc.cpp TransZeroOutPropsInDealloc.cpp
TransformActions.cpp TransformActions.cpp
Transforms.cpp Transforms.cpp
)
target_link_libraries(clangARCMigrate LINK_LIBS
clangAST clangAST
clangAnalysis clangAnalysis
clangBasic clangBasic
......
...@@ -57,9 +57,8 @@ add_clang_library(clangAST ...@@ -57,9 +57,8 @@ add_clang_library(clangAST
TypePrinter.cpp TypePrinter.cpp
VTableBuilder.cpp VTableBuilder.cpp
VTTBuilder.cpp VTTBuilder.cpp
)
target_link_libraries(clangAST LINK_LIBS
clangBasic clangBasic
clangLex clangLex
) )
...@@ -5,8 +5,7 @@ set(LLVM_LINK_COMPONENTS support) ...@@ -5,8 +5,7 @@ set(LLVM_LINK_COMPONENTS support)
add_clang_library(clangASTMatchers add_clang_library(clangASTMatchers
ASTMatchFinder.cpp ASTMatchFinder.cpp
ASTMatchersInternal.cpp ASTMatchersInternal.cpp
)
target_link_libraries(clangASTMatchers LINK_LIBS
clangAST clangAST
) )
...@@ -5,9 +5,8 @@ add_clang_library(clangDynamicASTMatchers ...@@ -5,9 +5,8 @@ add_clang_library(clangDynamicASTMatchers
VariantValue.cpp VariantValue.cpp
Parser.cpp Parser.cpp
Registry.cpp Registry.cpp
)
target_link_libraries(clangDynamicASTMatchers LINK_LIBS
clangAST clangAST
clangASTMatchers clangASTMatchers
clangBasic clangBasic
......
...@@ -24,9 +24,8 @@ add_clang_library(clangAnalysis ...@@ -24,9 +24,8 @@ add_clang_library(clangAnalysis
ScanfFormatString.cpp ScanfFormatString.cpp
ThreadSafety.cpp ThreadSafety.cpp
UninitializedValues.cpp UninitializedValues.cpp
)
target_link_libraries(clangAnalysis LINK_LIBS
clangBasic clangBasic
clangAST clangAST
) )
...@@ -61,9 +61,8 @@ add_clang_library(clangCodeGen ...@@ -61,9 +61,8 @@ add_clang_library(clangCodeGen
DEPENDS DEPENDS
intrinsics_gen intrinsics_gen
)
target_link_libraries(clangCodeGen LINK_LIBS
clangBasic clangBasic
clangAST clangAST
clangFrontend clangFrontend
......
...@@ -24,8 +24,7 @@ add_clang_library(clangDriver ...@@ -24,8 +24,7 @@ add_clang_library(clangDriver
DEPENDS DEPENDS
ClangCC1AsOptions ClangCC1AsOptions
ClangDriverOptions ClangDriverOptions
)
target_link_libraries(clangDriver LINK_LIBS
clangBasic clangBasic
) )
...@@ -6,9 +6,8 @@ add_clang_library(clangEdit ...@@ -6,9 +6,8 @@ add_clang_library(clangEdit
Commit.cpp Commit.cpp
EditedSource.cpp EditedSource.cpp
RewriteObjCFoundationAPI.cpp RewriteObjCFoundationAPI.cpp
)
target_link_libraries(clangEdit LINK_LIBS
clangBasic clangBasic
clangAST clangAST
clangLex clangLex
......
...@@ -8,9 +8,8 @@ add_clang_library(clangFormat ...@@ -8,9 +8,8 @@ add_clang_library(clangFormat
TokenAnnotator.cpp TokenAnnotator.cpp
UnwrappedLineParser.cpp UnwrappedLineParser.cpp
WhitespaceManager.cpp WhitespaceManager.cpp
)
target_link_libraries(clangFormat LINK_LIBS
clangBasic clangBasic
clangLex clangLex
clangTooling clangTooling
......
...@@ -36,9 +36,8 @@ add_clang_library(clangFrontend ...@@ -36,9 +36,8 @@ add_clang_library(clangFrontend
DEPENDS DEPENDS
ClangDriverOptions ClangDriverOptions
)
target_link_libraries(clangFrontend LINK_LIBS
clangAST clangAST
clangBasic clangBasic
clangDriver clangDriver
......
...@@ -3,14 +3,7 @@ set(LLVM_LINK_COMPONENTS ...@@ -3,14 +3,7 @@ set(LLVM_LINK_COMPONENTS
Support Support
) )
add_clang_library(clangFrontendTool set(link_libs
ExecuteCompilerInvocation.cpp
DEPENDS
ClangDriverOptions
)
target_link_libraries(clangFrontendTool
clangBasic clangBasic
clangCodeGen clangCodeGen
clangDriver clangDriver
...@@ -19,13 +12,23 @@ target_link_libraries(clangFrontendTool ...@@ -19,13 +12,23 @@ target_link_libraries(clangFrontendTool
) )
if(CLANG_ENABLE_ARCMT) if(CLANG_ENABLE_ARCMT)
target_link_libraries(clangFrontendTool list(APPEND link_libs
clangARCMigrate clangARCMigrate
) )
endif() endif()
if(CLANG_ENABLE_STATIC_ANALYZER) if(CLANG_ENABLE_STATIC_ANALYZER)
target_link_libraries(clangFrontendTool list(APPEND link_libs
clangStaticAnalyzerFrontend clangStaticAnalyzerFrontend
) )
endif() endif()
add_clang_library(clangFrontendTool
ExecuteCompilerInvocation.cpp
DEPENDS
ClangDriverOptions
LINK_LIBS
${link_libs}
)
...@@ -8,9 +8,8 @@ add_clang_library(clangIndex ...@@ -8,9 +8,8 @@ add_clang_library(clangIndex
ADDITIONAL_HEADERS ADDITIONAL_HEADERS
SimpleFormatContext.h SimpleFormatContext.h
)
target_link_libraries(clangIndex LINK_LIBS
clangAST clangAST
clangBasic clangBasic
clangFormat clangFormat
......
...@@ -25,8 +25,7 @@ add_clang_library(clangLex ...@@ -25,8 +25,7 @@ add_clang_library(clangLex
ScratchBuffer.cpp ScratchBuffer.cpp
TokenConcatenation.cpp TokenConcatenation.cpp
TokenLexer.cpp TokenLexer.cpp
)
target_link_libraries(clangLex LINK_LIBS
clangBasic clangBasic
) )
...@@ -19,9 +19,8 @@ add_clang_library(clangParse ...@@ -19,9 +19,8 @@ add_clang_library(clangParse
ParseTemplate.cpp ParseTemplate.cpp
ParseTentative.cpp ParseTentative.cpp
Parser.cpp Parser.cpp
)
target_link_libraries(clangParse LINK_LIBS
clangBasic clangBasic
clangAST clangAST
clangLex clangLex
......
...@@ -8,9 +8,8 @@ add_clang_library(clangRewriteCore ...@@ -8,9 +8,8 @@ add_clang_library(clangRewriteCore
RewriteRope.cpp RewriteRope.cpp
Rewriter.cpp Rewriter.cpp
TokenRewriter.cpp TokenRewriter.cpp
)
target_link_libraries(clangRewriteCore LINK_LIBS
clangAST clangAST
clangBasic clangBasic
clangLex clangLex
......
...@@ -11,9 +11,8 @@ add_clang_library(clangRewriteFrontend ...@@ -11,9 +11,8 @@ add_clang_library(clangRewriteFrontend
RewriteModernObjC.cpp RewriteModernObjC.cpp
RewriteObjC.cpp RewriteObjC.cpp
RewriteTest.cpp RewriteTest.cpp
)
target_link_libraries(clangRewriteFrontend LINK_LIBS
clangAST clangAST
clangBasic clangBasic
clangEdit clangEdit
......
...@@ -48,9 +48,8 @@ add_clang_library(clangSema ...@@ -48,9 +48,8 @@ add_clang_library(clangSema
SemaTemplateVariadic.cpp SemaTemplateVariadic.cpp
SemaType.cpp SemaType.cpp
TypeLocBuilder.cpp TypeLocBuilder.cpp
)
target_link_libraries(clangSema LINK_LIBS
clangAST clangAST
clangAnalysis clangAnalysis
clangBasic clangBasic
......
...@@ -20,9 +20,8 @@ add_clang_library(clangSerialization ...@@ -20,9 +20,8 @@ add_clang_library(clangSerialization
ADDITIONAL_HEADERS ADDITIONAL_HEADERS
ASTCommon.h ASTCommon.h
ASTReaderInternals.h ASTReaderInternals.h
)
target_link_libraries(clangSerialization LINK_LIBS
clangAST clangAST
clangBasic clangBasic
clangLex clangLex
......
...@@ -77,9 +77,8 @@ add_clang_library(clangStaticAnalyzerCheckers ...@@ -77,9 +77,8 @@ add_clang_library(clangStaticAnalyzerCheckers
DEPENDS DEPENDS
ClangSACheckers ClangSACheckers
)
target_link_libraries(clangStaticAnalyzerCheckers LINK_LIBS
clangAST clangAST
clangAnalysis clangAnalysis
clangBasic clangBasic
......
...@@ -39,9 +39,8 @@ add_clang_library(clangStaticAnalyzerCore ...@@ -39,9 +39,8 @@ add_clang_library(clangStaticAnalyzerCore
Store.cpp Store.cpp
SubEngine.cpp SubEngine.cpp
SymbolManager.cpp SymbolManager.cpp
)
target_link_libraries(clangStaticAnalyzerCore LINK_LIBS
clangAST clangAST
clangAnalysis clangAnalysis
clangBasic clangBasic
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment