summaryrefslogtreecommitdiffstats
path: root/clang/examples
diff options
context:
space:
mode:
Diffstat (limited to 'clang/examples')
-rw-r--r--clang/examples/PrintFunctionNames/CMakeLists.txt9
-rw-r--r--clang/examples/analyzer-plugin/CMakeLists.txt9
2 files changed, 18 insertions, 0 deletions
diff --git a/clang/examples/PrintFunctionNames/CMakeLists.txt b/clang/examples/PrintFunctionNames/CMakeLists.txt
index a31a8f69e79..ba6a350cd95 100644
--- a/clang/examples/PrintFunctionNames/CMakeLists.txt
+++ b/clang/examples/PrintFunctionNames/CMakeLists.txt
@@ -4,6 +4,15 @@ set( LLVM_LINK_COMPONENTS support mc)
add_clang_library(PrintFunctionNames PrintFunctionNames.cpp)
+add_dependencies(PrintFunctionNames
+ ClangAttrClasses
+ ClangAttrList
+ ClangCommentNodes
+ ClangDeclNodes
+ ClangDiagnosticCommon
+ ClangStmtNodes
+ )
+
target_link_libraries(PrintFunctionNames
clangFrontend
clangAST
diff --git a/clang/examples/analyzer-plugin/CMakeLists.txt b/clang/examples/analyzer-plugin/CMakeLists.txt
index 9ad5cace806..ba73030cc37 100644
--- a/clang/examples/analyzer-plugin/CMakeLists.txt
+++ b/clang/examples/analyzer-plugin/CMakeLists.txt
@@ -4,6 +4,15 @@ set( LLVM_LINK_COMPONENTS support mc)
add_clang_library(SampleAnalyzerPlugin MainCallChecker.cpp)
+add_dependencies(SampleAnalyzerPlugin
+ ClangAttrClasses
+ ClangAttrList
+ ClangCommentNodes
+ ClangDeclNodes
+ ClangDiagnosticCommon
+ ClangStmtNodes
+ )
+
target_link_libraries(SampleAnalyzerPlugin
clangStaticAnalyzerCore
)
OpenPOWER on IntegriCloud