diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-12-10 12:40:37 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-12-10 12:40:37 +0000 |
commit | d31b98f0a89e0d8cb3a32fb693018ab9d98f3131 (patch) | |
tree | 498ec82d6652a0bc81896d7a02a67529440bcda1 /examples | |
parent | d2c03c91601f63bc05c4a41ed2baed53f1807616 (diff) | |
download | clang-d31b98f0a89e0d8cb3a32fb693018ab9d98f3131.tar.gz clang-d31b98f0a89e0d8cb3a32fb693018ab9d98f3131.tar.bz2 clang-d31b98f0a89e0d8cb3a32fb693018ab9d98f3131.tar.xz |
[CMake] Update target_link_libraries() and LLVM_LINK_COMPONENTS for each CMakeLists.txt.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196916 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r-- | examples/PrintFunctionNames/CMakeLists.txt | 7 | ||||
-rw-r--r-- | examples/analyzer-plugin/CMakeLists.txt | 6 | ||||
-rw-r--r-- | examples/clang-interpreter/CMakeLists.txt | 31 |
3 files changed, 17 insertions, 27 deletions
diff --git a/examples/PrintFunctionNames/CMakeLists.txt b/examples/PrintFunctionNames/CMakeLists.txt index ba6a350cd9..492b580c0e 100644 --- a/examples/PrintFunctionNames/CMakeLists.txt +++ b/examples/PrintFunctionNames/CMakeLists.txt @@ -1,6 +1,8 @@ set(MODULE TRUE) -set( LLVM_LINK_COMPONENTS support mc) +set( LLVM_LINK_COMPONENTS + Support + ) add_clang_library(PrintFunctionNames PrintFunctionNames.cpp) @@ -14,8 +16,9 @@ add_dependencies(PrintFunctionNames ) target_link_libraries(PrintFunctionNames - clangFrontend clangAST + clangBasic + clangFrontend ) set_target_properties(PrintFunctionNames diff --git a/examples/analyzer-plugin/CMakeLists.txt b/examples/analyzer-plugin/CMakeLists.txt index ba73030cc3..fa8c4fcb32 100644 --- a/examples/analyzer-plugin/CMakeLists.txt +++ b/examples/analyzer-plugin/CMakeLists.txt @@ -1,6 +1,8 @@ set(MODULE TRUE) -set( LLVM_LINK_COMPONENTS support mc) +set(LLVM_LINK_COMPONENTS + Support + ) add_clang_library(SampleAnalyzerPlugin MainCallChecker.cpp) @@ -14,6 +16,8 @@ add_dependencies(SampleAnalyzerPlugin ) target_link_libraries(SampleAnalyzerPlugin + clangAST + clangAnalysis clangStaticAnalyzerCore ) diff --git a/examples/clang-interpreter/CMakeLists.txt b/examples/clang-interpreter/CMakeLists.txt index 451b4b8672..10df7e7e06 100644 --- a/examples/clang-interpreter/CMakeLists.txt +++ b/examples/clang-interpreter/CMakeLists.txt @@ -1,15 +1,9 @@ set(LLVM_LINK_COMPONENTS - jit - interpreter + Core + ExecutionEngine + JIT + Support nativecodegen - asmparser - bitreader - bitwriter - irreader - codegen - ipo - linker - selectiondag ) add_clang_executable(clang-interpreter @@ -21,19 +15,8 @@ add_dependencies(clang-interpreter ) target_link_libraries(clang-interpreter - clangFrontend - clangSerialization - clangDriver - clangCodeGen - clangSema - clangStaticAnalyzerFrontend - clangStaticAnalyzerCheckers - clangStaticAnalyzerCore - clangAnalysis - clangRewriteCore - clangRewriteFrontend - clangAST - clangParse - clangLex clangBasic + clangCodeGen + clangDriver + clangFrontend ) |