[clang-tools-extra] Prevent linking to duplicate .a libs and dylib
[lldb.git] / clang-tools-extra / clang-tidy / misc / CMakeLists.txt
1 set(LLVM_LINK_COMPONENTS
2   FrontendOpenMP
3   Support
4   )
5
6 add_clang_library(clangTidyMiscModule
7   DefinitionsInHeadersCheck.cpp
8   MiscTidyModule.cpp
9   MisplacedConstCheck.cpp
10   NewDeleteOverloadsCheck.cpp
11   NoRecursionCheck.cpp
12   NonCopyableObjects.cpp
13   NonPrivateMemberVariablesInClassesCheck.cpp
14   RedundantExpressionCheck.cpp
15   StaticAssertCheck.cpp
16   ThrowByValueCatchByReferenceCheck.cpp
17   UnconventionalAssignOperatorCheck.cpp
18   UniqueptrResetReleaseCheck.cpp
19   UnusedAliasDeclsCheck.cpp
20   UnusedParametersCheck.cpp
21   UnusedUsingDeclsCheck.cpp
22
23   LINK_LIBS
24   clangTidy
25   clangTidyUtils
26   )
27
28 clang_target_link_libraries(clangTidyMiscModule
29   PRIVATE
30   clangAnalysis
31   clangAST
32   clangASTMatchers
33   clangBasic
34   clangLex
35   clangSerialization
36   clangTooling
37   )