[clang-tools-extra] r373786 - [clang-tools-extra] [cmake] Link against libclang-cpp whenever possible
Michal Gorny via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 4 13:30:02 PDT 2019
Author: mgorny
Date: Fri Oct 4 13:30:02 2019
New Revision: 373786
URL: http://llvm.org/viewvc/llvm-project?rev=373786&view=rev
Log:
[clang-tools-extra] [cmake] Link against libclang-cpp whenever possible
Use clang_target_link_libraries() in order to support linking against
libclang-cpp instead of static libraries.
Differential Revision: https://reviews.llvm.org/D68448
Modified:
clang-tools-extra/trunk/clang-apply-replacements/tool/CMakeLists.txt
clang-tools-extra/trunk/clang-change-namespace/tool/CMakeLists.txt
clang-tools-extra/trunk/clang-doc/tool/CMakeLists.txt
clang-tools-extra/trunk/clang-include-fixer/find-all-symbols/tool/CMakeLists.txt
clang-tools-extra/trunk/clang-include-fixer/tool/CMakeLists.txt
clang-tools-extra/trunk/clang-move/tool/CMakeLists.txt
clang-tools-extra/trunk/clang-query/tool/CMakeLists.txt
clang-tools-extra/trunk/clang-reorder-fields/tool/CMakeLists.txt
clang-tools-extra/trunk/clang-tidy/CMakeLists.txt
clang-tools-extra/trunk/clang-tidy/tool/CMakeLists.txt
clang-tools-extra/trunk/clangd/fuzzer/CMakeLists.txt
clang-tools-extra/trunk/clangd/index/dex/dexp/CMakeLists.txt
clang-tools-extra/trunk/clangd/indexer/CMakeLists.txt
clang-tools-extra/trunk/clangd/tool/CMakeLists.txt
clang-tools-extra/trunk/clangd/unittests/CMakeLists.txt
clang-tools-extra/trunk/clangd/xpc/test-client/CMakeLists.txt
clang-tools-extra/trunk/modularize/CMakeLists.txt
clang-tools-extra/trunk/pp-trace/CMakeLists.txt
clang-tools-extra/trunk/tool-template/CMakeLists.txt
clang-tools-extra/trunk/unittests/clang-apply-replacements/CMakeLists.txt
clang-tools-extra/trunk/unittests/clang-change-namespace/CMakeLists.txt
clang-tools-extra/trunk/unittests/clang-doc/CMakeLists.txt
clang-tools-extra/trunk/unittests/clang-include-fixer/CMakeLists.txt
clang-tools-extra/trunk/unittests/clang-include-fixer/find-all-symbols/CMakeLists.txt
clang-tools-extra/trunk/unittests/clang-move/CMakeLists.txt
clang-tools-extra/trunk/unittests/clang-query/CMakeLists.txt
clang-tools-extra/trunk/unittests/clang-tidy/CMakeLists.txt
Modified: clang-tools-extra/trunk/clang-apply-replacements/tool/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-apply-replacements/tool/CMakeLists.txt?rev=373786&r1=373785&r2=373786&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-apply-replacements/tool/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/clang-apply-replacements/tool/CMakeLists.txt Fri Oct 4 13:30:02 2019
@@ -5,12 +5,15 @@ set(LLVM_LINK_COMPONENTS
add_clang_tool(clang-apply-replacements
ClangApplyReplacementsMain.cpp
)
-target_link_libraries(clang-apply-replacements
+clang_target_link_libraries(clang-apply-replacements
PRIVATE
- clangApplyReplacements
clangBasic
clangFormat
clangRewrite
clangToolingCore
clangToolingRefactoring
)
+target_link_libraries(clang-apply-replacements
+ PRIVATE
+ clangApplyReplacements
+ )
Modified: clang-tools-extra/trunk/clang-change-namespace/tool/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-change-namespace/tool/CMakeLists.txt?rev=373786&r1=373785&r2=373786&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-change-namespace/tool/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/clang-change-namespace/tool/CMakeLists.txt Fri Oct 4 13:30:02 2019
@@ -7,12 +7,11 @@ set(LLVM_LINK_COMPONENTS
add_clang_tool(clang-change-namespace
ClangChangeNamespace.cpp
)
-target_link_libraries(clang-change-namespace
+clang_target_link_libraries(clang-change-namespace
PRIVATE
clangAST
clangASTMatchers
clangBasic
- clangChangeNamespace
clangFormat
clangFrontend
clangRewrite
@@ -20,3 +19,7 @@ target_link_libraries(clang-change-names
clangTooling
clangToolingCore
)
+target_link_libraries(clang-change-namespace
+ PRIVATE
+ clangChangeNamespace
+ )
Modified: clang-tools-extra/trunk/clang-doc/tool/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-doc/tool/CMakeLists.txt?rev=373786&r1=373785&r2=373786&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-doc/tool/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/clang-doc/tool/CMakeLists.txt Fri Oct 4 13:30:02 2019
@@ -4,16 +4,19 @@ add_clang_tool(clang-doc
ClangDocMain.cpp
)
-target_link_libraries(clang-doc
+clang_target_link_libraries(clang-doc
PRIVATE
clangAST
clangASTMatchers
clangBasic
clangFrontend
- clangDoc
clangTooling
clangToolingCore
)
+target_link_libraries(clang-doc
+ PRIVATE
+ clangDoc
+ )
install(FILES ../assets/clang-doc-default-stylesheet.css
DESTINATION share/clang
Modified: clang-tools-extra/trunk/clang-include-fixer/find-all-symbols/tool/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-include-fixer/find-all-symbols/tool/CMakeLists.txt?rev=373786&r1=373785&r2=373786&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-include-fixer/find-all-symbols/tool/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/clang-include-fixer/find-all-symbols/tool/CMakeLists.txt Fri Oct 4 13:30:02 2019
@@ -4,7 +4,7 @@ add_clang_tool(find-all-symbols
FindAllSymbolsMain.cpp
)
-target_link_libraries(find-all-symbols
+clang_target_link_libraries(find-all-symbols
PRIVATE
clangAST
clangASTMatchers
@@ -13,6 +13,9 @@ target_link_libraries(find-all-symbols
clangLex
clangSerialization
clangTooling
+ )
+target_link_libraries(find-all-symbols
+ PRIVATE
findAllSymbols
)
Modified: clang-tools-extra/trunk/clang-include-fixer/tool/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-include-fixer/tool/CMakeLists.txt?rev=373786&r1=373785&r2=373786&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-include-fixer/tool/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/clang-include-fixer/tool/CMakeLists.txt Fri Oct 4 13:30:02 2019
@@ -4,16 +4,19 @@ add_clang_tool(clang-include-fixer
ClangIncludeFixer.cpp
)
-target_link_libraries(clang-include-fixer
+clang_target_link_libraries(clang-include-fixer
PRIVATE
clangBasic
clangFormat
clangFrontend
- clangIncludeFixer
clangRewrite
clangSerialization
clangTooling
clangToolingCore
+ )
+target_link_libraries(clang-include-fixer
+ PRIVATE
+ clangIncludeFixer
findAllSymbols
)
Modified: clang-tools-extra/trunk/clang-move/tool/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-move/tool/CMakeLists.txt?rev=373786&r1=373785&r2=373786&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-move/tool/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/clang-move/tool/CMakeLists.txt Fri Oct 4 13:30:02 2019
@@ -4,16 +4,19 @@ add_clang_tool(clang-move
ClangMove.cpp
)
-target_link_libraries(clang-move
+clang_target_link_libraries(clang-move
PRIVATE
clangAST
clangASTMatchers
clangBasic
clangFormat
clangFrontend
- clangMove
clangRewrite
clangSerialization
clangTooling
clangToolingCore
)
+target_link_libraries(clang-move
+ PRIVATE
+ clangMove
+ )
Modified: clang-tools-extra/trunk/clang-query/tool/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-query/tool/CMakeLists.txt?rev=373786&r1=373785&r2=373786&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-query/tool/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/clang-query/tool/CMakeLists.txt Fri Oct 4 13:30:02 2019
@@ -3,14 +3,17 @@ include_directories(${CMAKE_CURRENT_SOUR
add_clang_tool(clang-query
ClangQuery.cpp
)
-target_link_libraries(clang-query
+clang_target_link_libraries(clang-query
PRIVATE
clangAST
clangASTMatchers
clangBasic
clangDynamicASTMatchers
clangFrontend
- clangQuery
clangSerialization
clangTooling
)
+target_link_libraries(clang-query
+ PRIVATE
+ clangQuery
+ )
Modified: clang-tools-extra/trunk/clang-reorder-fields/tool/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-reorder-fields/tool/CMakeLists.txt?rev=373786&r1=373785&r2=373786&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-reorder-fields/tool/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/clang-reorder-fields/tool/CMakeLists.txt Fri Oct 4 13:30:02 2019
@@ -2,13 +2,16 @@ add_clang_tool(clang-reorder-fields
ClangReorderFields.cpp
)
-target_link_libraries(clang-reorder-fields
+clang_target_link_libraries(clang-reorder-fields
PRIVATE
clangBasic
clangFrontend
- clangReorderFields
clangRewrite
clangSerialization
clangTooling
clangToolingCore
)
+target_link_libraries(clang-reorder-fields
+ PRIVATE
+ clangReorderFields
+ )
Modified: clang-tools-extra/trunk/clang-tidy/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/CMakeLists.txt?rev=373786&r1=373785&r2=373786&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/clang-tidy/CMakeLists.txt Fri Oct 4 13:30:02 2019
@@ -31,7 +31,7 @@ add_clang_library(clangTidy
)
if(CLANG_ENABLE_STATIC_ANALYZER)
- target_link_libraries(clangTidy PRIVATE
+ clang_target_link_libraries(clangTidy PRIVATE
clangStaticAnalyzerCore
clangStaticAnalyzerFrontend
)
Modified: clang-tools-extra/trunk/clang-tidy/tool/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/tool/CMakeLists.txt?rev=373786&r1=373785&r2=373786&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/tool/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/clang-tidy/tool/CMakeLists.txt Fri Oct 4 13:30:02 2019
@@ -11,14 +11,17 @@ add_clang_tool(clang-tidy
add_dependencies(clang-tidy
clang-resource-headers
)
-target_link_libraries(clang-tidy
+clang_target_link_libraries(clang-tidy
PRIVATE
clangAST
clangASTMatchers
clangBasic
- clangTidy
clangTooling
clangToolingCore
+ )
+target_link_libraries(clang-tidy
+ PRIVATE
+ clangTidy
${ALL_CLANG_TIDY_CHECKS}
)
Modified: clang-tools-extra/trunk/clangd/fuzzer/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/fuzzer/CMakeLists.txt?rev=373786&r1=373785&r2=373786&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/fuzzer/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/clangd/fuzzer/CMakeLists.txt Fri Oct 4 13:30:02 2019
@@ -12,13 +12,16 @@ add_llvm_fuzzer(clangd-fuzzer
DUMMY_MAIN DummyClangdMain.cpp
)
-target_link_libraries(clangd-fuzzer
+clang_target_link_libraries(clangd-fuzzer
PRIVATE
clangBasic
- clangDaemon
clangFormat
clangFrontend
clangSema
clangTooling
clangToolingCore
)
+target_link_libraries(clangd-fuzzer
+ PRIVATE
+ clangDaemon
+ )
Modified: clang-tools-extra/trunk/clangd/index/dex/dexp/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/index/dex/dexp/CMakeLists.txt?rev=373786&r1=373785&r2=373786&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/index/dex/dexp/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/clangd/index/dex/dexp/CMakeLists.txt Fri Oct 4 13:30:02 2019
@@ -9,8 +9,11 @@ add_clang_executable(dexp
Dexp.cpp
)
-target_link_libraries(dexp
+clang_target_link_libraries(dexp
PRIVATE
clangBasic
+ )
+target_link_libraries(dexp
+ PRIVATE
clangDaemon
)
Modified: clang-tools-extra/trunk/clangd/indexer/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/indexer/CMakeLists.txt?rev=373786&r1=373785&r2=373786&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/indexer/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/clangd/indexer/CMakeLists.txt Fri Oct 4 13:30:02 2019
@@ -8,13 +8,16 @@ add_clang_executable(clangd-indexer
IndexerMain.cpp
)
-target_link_libraries(clangd-indexer
+clang_target_link_libraries(clangd-indexer
PRIVATE
clangAST
clangBasic
- clangDaemon
clangFrontend
clangIndex
clangLex
clangTooling
)
+target_link_libraries(clangd-indexer
+ PRIVATE
+ clangDaemon
+)
Modified: clang-tools-extra/trunk/clangd/tool/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/tool/CMakeLists.txt?rev=373786&r1=373785&r2=373786&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/tool/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/clangd/tool/CMakeLists.txt Fri Oct 4 13:30:02 2019
@@ -15,12 +15,10 @@ if(CLANGD_BUILD_XPC)
list(APPEND CLANGD_XPC_LIBS "clangdXpcJsonConversions" "clangdXpcTransport")
endif()
-target_link_libraries(clangd
+clang_target_link_libraries(clangd
PRIVATE
clangAST
clangBasic
- clangTidy
- clangDaemon
clangFormat
clangFrontend
clangSema
@@ -28,5 +26,10 @@ target_link_libraries(clangd
clangToolingCore
clangToolingRefactoring
clangToolingSyntax
+ )
+target_link_libraries(clangd
+ PRIVATE
+ clangTidy
+ clangDaemon
${CLANGD_XPC_LIBS}
)
Modified: clang-tools-extra/trunk/clangd/unittests/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/unittests/CMakeLists.txt?rev=373786&r1=373785&r2=373786&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/unittests/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/clangd/unittests/CMakeLists.txt Fri Oct 4 13:30:02 2019
@@ -78,23 +78,26 @@ add_unittest(ClangdUnitTests ClangdTests
$<TARGET_OBJECTS:obj.clangDaemonTweaks>
)
-target_link_libraries(ClangdTests
+clang_target_link_libraries(ClangdTests
PRIVATE
clangAST
clangBasic
- clangDaemon
clangFormat
clangFrontend
clangIndex
clangLex
clangSema
clangSerialization
- clangTidy
clangTooling
clangToolingCore
clangToolingInclusions
clangToolingRefactoring
clangToolingSyntax
+ )
+target_link_libraries(ClangdTests
+ PRIVATE
+ clangDaemon
+ clangTidy
LLVMSupport
LLVMTestingSupport
)
Modified: clang-tools-extra/trunk/clangd/xpc/test-client/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/xpc/test-client/CMakeLists.txt?rev=373786&r1=373785&r2=373786&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/xpc/test-client/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/clangd/xpc/test-client/CMakeLists.txt Fri Oct 4 13:30:02 2019
@@ -13,14 +13,17 @@ set(LLVM_LINK_COMPONENTS
support
)
-target_link_libraries(clangd-xpc-test-client
+clang_target_link_libraries(clangd-xpc-test-client
PRIVATE
clangBasic
- clangDaemon
clangFormat
clangFrontend
clangSema
clangTooling
clangToolingCore
+)
+target_link_libraries(clangd-xpc-test-client
+ PRIVATE
+ clangDaemon
clangdXpcJsonConversions
)
Modified: clang-tools-extra/trunk/modularize/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/modularize/CMakeLists.txt?rev=373786&r1=373785&r2=373786&view=diff
==============================================================================
--- clang-tools-extra/trunk/modularize/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/modularize/CMakeLists.txt Fri Oct 4 13:30:02 2019
@@ -11,7 +11,7 @@ add_clang_tool(modularize
PreprocessorTracker.cpp
)
-target_link_libraries(modularize
+clang_target_link_libraries(modularize
PRIVATE
clangAST
clangBasic
Modified: clang-tools-extra/trunk/pp-trace/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/pp-trace/CMakeLists.txt?rev=373786&r1=373785&r2=373786&view=diff
==============================================================================
--- clang-tools-extra/trunk/pp-trace/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/pp-trace/CMakeLists.txt Fri Oct 4 13:30:02 2019
@@ -7,7 +7,7 @@ add_clang_tool(pp-trace
PPCallbacksTracker.cpp
)
-target_link_libraries(pp-trace
+clang_target_link_libraries(pp-trace
PRIVATE
clangAST
clangBasic
Modified: clang-tools-extra/trunk/tool-template/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/tool-template/CMakeLists.txt?rev=373786&r1=373785&r2=373786&view=diff
==============================================================================
--- clang-tools-extra/trunk/tool-template/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/tool-template/CMakeLists.txt Fri Oct 4 13:30:02 2019
@@ -6,7 +6,7 @@ add_clang_executable(tool-template
ToolTemplate.cpp
)
-target_link_libraries(tool-template
+clang_target_link_libraries(tool-template
PRIVATE
clangAST
clangASTMatchers
Modified: clang-tools-extra/trunk/unittests/clang-apply-replacements/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clang-apply-replacements/CMakeLists.txt?rev=373786&r1=373785&r2=373786&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clang-apply-replacements/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/unittests/clang-apply-replacements/CMakeLists.txt Fri Oct 4 13:30:02 2019
@@ -11,10 +11,13 @@ add_extra_unittest(ClangApplyReplacement
ApplyReplacementsTest.cpp
)
-target_link_libraries(ClangApplyReplacementsTests
+clang_target_link_libraries(ClangApplyReplacementsTests
PRIVATE
- clangApplyReplacements
clangBasic
clangToolingCore
clangToolingRefactoring
)
+target_link_libraries(ClangApplyReplacementsTests
+ PRIVATE
+ clangApplyReplacements
+ )
Modified: clang-tools-extra/trunk/unittests/clang-change-namespace/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clang-change-namespace/CMakeLists.txt?rev=373786&r1=373785&r2=373786&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clang-change-namespace/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/unittests/clang-change-namespace/CMakeLists.txt Fri Oct 4 13:30:02 2019
@@ -15,12 +15,11 @@ add_extra_unittest(ClangChangeNamespaceT
ChangeNamespaceTests.cpp
)
-target_link_libraries(ClangChangeNamespaceTests
+clang_target_link_libraries(ClangChangeNamespaceTests
PRIVATE
clangAST
clangASTMatchers
clangBasic
- clangChangeNamespace
clangFormat
clangFrontend
clangRewrite
@@ -28,3 +27,7 @@ target_link_libraries(ClangChangeNamespa
clangTooling
clangToolingCore
)
+target_link_libraries(ClangChangeNamespaceTests
+ PRIVATE
+ clangChangeNamespace
+ )
Modified: clang-tools-extra/trunk/unittests/clang-doc/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clang-doc/CMakeLists.txt?rev=373786&r1=373785&r2=373786&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clang-doc/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/unittests/clang-doc/CMakeLists.txt Fri Oct 4 13:30:02 2019
@@ -20,12 +20,11 @@ add_extra_unittest(ClangDocTests
YAMLGeneratorTest.cpp
)
-target_link_libraries(ClangDocTests
+clang_target_link_libraries(ClangDocTests
PRIVATE
clangAST
clangASTMatchers
clangBasic
- clangDoc
clangFormat
clangFrontend
clangRewrite
@@ -33,3 +32,7 @@ target_link_libraries(ClangDocTests
clangTooling
clangToolingCore
)
+target_link_libraries(ClangDocTests
+ PRIVATE
+ clangDoc
+ )
Modified: clang-tools-extra/trunk/unittests/clang-include-fixer/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clang-include-fixer/CMakeLists.txt?rev=373786&r1=373785&r2=373786&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clang-include-fixer/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/unittests/clang-include-fixer/CMakeLists.txt Fri Oct 4 13:30:02 2019
@@ -16,16 +16,19 @@ add_extra_unittest(ClangIncludeFixerTest
FuzzySymbolIndexTests.cpp
)
-target_link_libraries(ClangIncludeFixerTests
+clang_target_link_libraries(ClangIncludeFixerTests
PRIVATE
clangBasic
clangFormat
clangFrontend
- clangIncludeFixer
clangRewrite
clangSerialization
clangTooling
clangToolingCore
+ )
+target_link_libraries(ClangIncludeFixerTests
+ PRIVATE
+ clangIncludeFixer
findAllSymbols
)
Modified: clang-tools-extra/trunk/unittests/clang-include-fixer/find-all-symbols/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clang-include-fixer/find-all-symbols/CMakeLists.txt?rev=373786&r1=373785&r2=373786&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clang-include-fixer/find-all-symbols/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/unittests/clang-include-fixer/find-all-symbols/CMakeLists.txt Fri Oct 4 13:30:02 2019
@@ -12,7 +12,7 @@ add_extra_unittest(FindAllSymbolsTests
FindAllSymbolsTests.cpp
)
-target_link_libraries(FindAllSymbolsTests
+clang_target_link_libraries(FindAllSymbolsTests
PRIVATE
clangAST
clangASTMatchers
@@ -21,5 +21,8 @@ target_link_libraries(FindAllSymbolsTest
clangLex
clangSerialization
clangTooling
+ )
+target_link_libraries(FindAllSymbolsTests
+ PRIVATE
findAllSymbols
)
Modified: clang-tools-extra/trunk/unittests/clang-move/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clang-move/CMakeLists.txt?rev=373786&r1=373785&r2=373786&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clang-move/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/unittests/clang-move/CMakeLists.txt Fri Oct 4 13:30:02 2019
@@ -15,16 +15,19 @@ add_extra_unittest(ClangMoveTests
ClangMoveTests.cpp
)
-target_link_libraries(ClangMoveTests
+clang_target_link_libraries(ClangMoveTests
PRIVATE
clangAST
clangASTMatchers
clangBasic
clangFormat
clangFrontend
- clangMove
clangRewrite
clangSerialization
clangTooling
clangToolingCore
)
+target_link_libraries(ClangMoveTests
+ PRIVATE
+ clangMove
+ )
Modified: clang-tools-extra/trunk/unittests/clang-query/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clang-query/CMakeLists.txt?rev=373786&r1=373785&r2=373786&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clang-query/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/unittests/clang-query/CMakeLists.txt Fri Oct 4 13:30:02 2019
@@ -11,14 +11,17 @@ add_extra_unittest(ClangQueryTests
QueryParserTest.cpp
)
-target_link_libraries(ClangQueryTests
+clang_target_link_libraries(ClangQueryTests
PRIVATE
clangAST
clangASTMatchers
clangBasic
clangDynamicASTMatchers
clangFrontend
- clangQuery
clangSerialization
clangTooling
)
+target_link_libraries(ClangQueryTests
+ PRIVATE
+ clangQuery
+ )
Modified: clang-tools-extra/trunk/unittests/clang-tidy/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clang-tidy/CMakeLists.txt?rev=373786&r1=373785&r2=373786&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clang-tidy/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/unittests/clang-tidy/CMakeLists.txt Fri Oct 4 13:30:02 2019
@@ -21,7 +21,7 @@ add_extra_unittest(ClangTidyTests
TransformerClangTidyCheckTest.cpp
)
-target_link_libraries(ClangTidyTests
+clang_target_link_libraries(ClangTidyTests
PRIVATE
clangAST
clangASTMatchers
@@ -29,6 +29,12 @@ target_link_libraries(ClangTidyTests
clangFrontend
clangLex
clangSerialization
+ clangTooling
+ clangToolingCore
+ clangToolingRefactoring
+ )
+target_link_libraries(ClangTidyTests
+ PRIVATE
clangTidy
clangTidyAndroidModule
clangTidyGoogleModule
@@ -36,7 +42,4 @@ target_link_libraries(ClangTidyTests
clangTidyObjCModule
clangTidyReadabilityModule
clangTidyUtils
- clangTooling
- clangToolingCore
- clangToolingRefactoring
)
More information about the cfe-commits
mailing list