From e50d2fe35e29eaa2b3773030f231f00f6eba340f Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Tue, 10 Dec 2013 01:41:10 +0000 Subject: [PATCH] [CMake] clang-tools-extra: Update dependencies. git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@196860 91177308-0d34-0410-b5e6-96231b3b80d8 --- clang-apply-replacements/CMakeLists.txt | 5 ++--- clang-apply-replacements/tool/CMakeLists.txt | 4 ++++ clang-modernize/Core/CMakeLists.txt | 9 +++++---- clang-modernize/tool/CMakeLists.txt | 7 +++++++ clang-query/CMakeLists.txt | 4 ++++ clang-tidy/CMakeLists.txt | 8 +++++--- clang-tidy/google/CMakeLists.txt | 6 +++--- clang-tidy/llvm/CMakeLists.txt | 7 ++++--- clang-tidy/tool/CMakeLists.txt | 6 ++++-- modularize/CMakeLists.txt | 6 ++++-- pp-trace/CMakeLists.txt | 5 +++-- remove-cstr-calls/CMakeLists.txt | 12 +++++++++++- tool-template/CMakeLists.txt | 11 ++++++++++- unittests/clang-apply-replacements/CMakeLists.txt | 8 +------- unittests/clang-modernize/CMakeLists.txt | 10 +++++----- unittests/clang-query/CMakeLists.txt | 1 + unittests/clang-tidy/CMakeLists.txt | 14 +++++++------- 17 files changed, 80 insertions(+), 43 deletions(-) diff --git a/clang-apply-replacements/CMakeLists.txt b/clang-apply-replacements/CMakeLists.txt index ebc8b6a..3b84787 100644 --- a/clang-apply-replacements/CMakeLists.txt +++ b/clang-apply-replacements/CMakeLists.txt @@ -6,10 +6,9 @@ add_clang_library(clangApplyReplacements lib/Tooling/ApplyReplacements.cpp ) target_link_libraries(clangApplyReplacements - clangTooling clangBasic - clangRewriteFrontend - clangFormat + clangRewriteCore + clangTooling ) include_directories( diff --git a/clang-apply-replacements/tool/CMakeLists.txt b/clang-apply-replacements/tool/CMakeLists.txt index 6d74240..8baa0e5 100644 --- a/clang-apply-replacements/tool/CMakeLists.txt +++ b/clang-apply-replacements/tool/CMakeLists.txt @@ -7,6 +7,10 @@ add_clang_executable(clang-apply-replacements ) target_link_libraries(clang-apply-replacements clangApplyReplacements + clangBasic + clangFormat + clangRewriteCore + clangTooling ) install(TARGETS clang-apply-replacements diff --git a/clang-modernize/Core/CMakeLists.txt b/clang-modernize/Core/CMakeLists.txt index 784b560..71a9d0d 100644 --- a/clang-modernize/Core/CMakeLists.txt +++ b/clang-modernize/Core/CMakeLists.txt @@ -9,9 +9,10 @@ add_clang_library(modernizeCore IncludeDirectives.cpp ) target_link_libraries(modernizeCore - clangFormat - clangTooling - clangBasic + clangAST clangASTMatchers - clangRewriteFrontend + clangBasic + clangFrontend + clangLex + clangTooling ) diff --git a/clang-modernize/tool/CMakeLists.txt b/clang-modernize/tool/CMakeLists.txt index 9e574d4..a607640 100644 --- a/clang-modernize/tool/CMakeLists.txt +++ b/clang-modernize/tool/CMakeLists.txt @@ -34,6 +34,13 @@ add_dependencies(clang-modernize ) target_link_libraries(clang-modernize + clangAST + clangASTMatchers + clangBasic + clangFormat + clangFrontend + clangLex + clangTooling modernizeCore ) diff --git a/clang-query/CMakeLists.txt b/clang-query/CMakeLists.txt index 9233259..ae74836 100644 --- a/clang-query/CMakeLists.txt +++ b/clang-query/CMakeLists.txt @@ -1,3 +1,7 @@ +set(LLVM_LINK_COMPONENTS + Support + ) + add_clang_library(clangQuery Query.cpp QueryParser.cpp diff --git a/clang-tidy/CMakeLists.txt b/clang-tidy/CMakeLists.txt index a8f8687..a1610b7 100644 --- a/clang-tidy/CMakeLists.txt +++ b/clang-tidy/CMakeLists.txt @@ -7,11 +7,13 @@ add_clang_library(clangTidy ClangTidyModule.cpp ) target_link_libraries(clangTidy - clangTooling + clangAST + clangASTMatchers clangBasic - clangRewriteFrontend + clangFrontend + clangRewriteCore clangStaticAnalyzerFrontend - clangStaticAnalyzerCheckers + clangTooling ) add_subdirectory(tool) diff --git a/clang-tidy/google/CMakeLists.txt b/clang-tidy/google/CMakeLists.txt index bb44076..7d053c7 100644 --- a/clang-tidy/google/CMakeLists.txt +++ b/clang-tidy/google/CMakeLists.txt @@ -4,8 +4,8 @@ add_clang_library(clangTidyGoogleModule GoogleTidyModule.cpp ) target_link_libraries(clangTidyGoogleModule - clangTidy - clangTooling - clangBasic + clangAST clangASTMatchers + clangBasic + clangTidy ) diff --git a/clang-tidy/llvm/CMakeLists.txt b/clang-tidy/llvm/CMakeLists.txt index dd669f3..cf3930a 100644 --- a/clang-tidy/llvm/CMakeLists.txt +++ b/clang-tidy/llvm/CMakeLists.txt @@ -4,8 +4,9 @@ add_clang_library(clangTidyLLVMModule LLVMTidyModule.cpp ) target_link_libraries(clangTidyLLVMModule - clangTidy - clangTooling - clangBasic + clangAST clangASTMatchers + clangBasic + clangLex + clangTidy ) diff --git a/clang-tidy/tool/CMakeLists.txt b/clang-tidy/tool/CMakeLists.txt index 536ee93..72df967 100644 --- a/clang-tidy/tool/CMakeLists.txt +++ b/clang-tidy/tool/CMakeLists.txt @@ -6,10 +6,12 @@ add_clang_executable(clang-tidy ClangTidyMain.cpp ) target_link_libraries(clang-tidy + clangAST + clangASTMatchers clangTidy - clangTidyLLVMModule clangTidyGoogleModule - clangStaticAnalyzerCheckers + clangTidyLLVMModule + clangTooling ) install(TARGETS clang-tidy diff --git a/modularize/CMakeLists.txt b/modularize/CMakeLists.txt index 2093f41..6919e85 100644 --- a/modularize/CMakeLists.txt +++ b/modularize/CMakeLists.txt @@ -10,7 +10,9 @@ add_clang_executable(modularize ) target_link_libraries(modularize - clangTooling clangBasic - clangRewriteFrontend + clangDriver + clangFrontend + clangLex + clangTooling ) diff --git a/pp-trace/CMakeLists.txt b/pp-trace/CMakeLists.txt index 23000bb..95a1f10 100644 --- a/pp-trace/CMakeLists.txt +++ b/pp-trace/CMakeLists.txt @@ -8,8 +8,9 @@ add_clang_executable(pp-trace ) target_link_libraries(pp-trace + clangAST + clangBasic + clangFrontend clangLex - clangParse - clangSema clangTooling ) diff --git a/remove-cstr-calls/CMakeLists.txt b/remove-cstr-calls/CMakeLists.txt index 4ba2ee9..36e9318 100644 --- a/remove-cstr-calls/CMakeLists.txt +++ b/remove-cstr-calls/CMakeLists.txt @@ -1,6 +1,16 @@ +set(LLVM_LINK_COMPONENTS + Support + ) + add_clang_executable(remove-cstr-calls RemoveCStrCalls.cpp ) target_link_libraries(remove-cstr-calls - clangEdit clangTooling clangBasic clangAST clangASTMatchers) + clangAST + clangASTMatchers + clangBasic + clangFrontend + clangLex + clangTooling + ) diff --git a/tool-template/CMakeLists.txt b/tool-template/CMakeLists.txt index cf14a9f..8223e4c 100644 --- a/tool-template/CMakeLists.txt +++ b/tool-template/CMakeLists.txt @@ -1,6 +1,15 @@ +set(LLVM_LINK_COMPONENTS + Support + ) + add_clang_executable(tool-template ToolTemplate.cpp ) target_link_libraries(tool-template - clangEdit clangTooling clangBasic clangAST clangASTMatchers) + clangAST + clangASTMatchers + clangBasic + clangFrontend + clangTooling + ) diff --git a/unittests/clang-apply-replacements/CMakeLists.txt b/unittests/clang-apply-replacements/CMakeLists.txt index 9da1410..57d0610 100644 --- a/unittests/clang-apply-replacements/CMakeLists.txt +++ b/unittests/clang-apply-replacements/CMakeLists.txt @@ -1,10 +1,3 @@ -set(LLVM_LINK_COMPONENTS - asmparser - bitreader - support - mc - ) - get_filename_component(ClangApplyReplacementsLocation "${CMAKE_CURRENT_SOURCE_DIR}/../../clang-apply-replacements/include" REALPATH) get_filename_component(CommonIncLocation @@ -20,4 +13,5 @@ add_extra_unittest(ClangApplyReplacementsTests target_link_libraries(ClangApplyReplacementsTests clangApplyReplacements + clangTooling ) diff --git a/unittests/clang-modernize/CMakeLists.txt b/unittests/clang-modernize/CMakeLists.txt index 80fd4a7..3b023de 100644 --- a/unittests/clang-modernize/CMakeLists.txt +++ b/unittests/clang-modernize/CMakeLists.txt @@ -23,10 +23,10 @@ add_extra_unittest(ClangModernizeTests ) target_link_libraries(ClangModernizeTests - modernizeCore - clangFormat - clangTooling - clangBasic + clangAST clangASTMatchers - clangRewriteFrontend + clangBasic + clangFrontend + clangTooling + modernizeCore ) diff --git a/unittests/clang-query/CMakeLists.txt b/unittests/clang-query/CMakeLists.txt index 021009a..25b7533 100644 --- a/unittests/clang-query/CMakeLists.txt +++ b/unittests/clang-query/CMakeLists.txt @@ -12,6 +12,7 @@ add_extra_unittest(ClangQueryTests ) target_link_libraries(ClangQueryTests + clangAST clangASTMatchers clangQuery clangTooling diff --git a/unittests/clang-tidy/CMakeLists.txt b/unittests/clang-tidy/CMakeLists.txt index c0f94cc..2778571 100644 --- a/unittests/clang-tidy/CMakeLists.txt +++ b/unittests/clang-tidy/CMakeLists.txt @@ -11,12 +11,12 @@ add_extra_unittest(ClangTidyTests GoogleModuleTest.cpp) target_link_libraries(ClangTidyTests - gtest - gtest_main - clangTidy - clangTidyLLVMModule - clangTidyGoogleModule - clangTooling - clangBasic + clangAST clangASTMatchers + clangBasic + clangFrontend + clangTidy + clangTidyGoogleModule + clangTidyLLVMModule + clangTooling )