diff options
-rw-r--r-- | clang/examples/PrintFunctionNames/CMakeLists.txt | 9 | ||||
-rw-r--r-- | clang/examples/analyzer-plugin/CMakeLists.txt | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/clang/examples/PrintFunctionNames/CMakeLists.txt b/clang/examples/PrintFunctionNames/CMakeLists.txt index b79e575eaa6..e700281ab48 100644 --- a/clang/examples/PrintFunctionNames/CMakeLists.txt +++ b/clang/examples/PrintFunctionNames/CMakeLists.txt @@ -10,3 +10,12 @@ if( NOT MSVC ) # MSVC mangles symbols differently, and endif() add_llvm_loadable_module(PrintFunctionNames PrintFunctionNames.cpp) + +if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN)) + target_link_libraries(PrintFunctionNames ${cmake_2_8_12_PRIVATE} + clangAST + clangBasic + clangFrontend + LLVMSupport + ) +endif() diff --git a/clang/examples/analyzer-plugin/CMakeLists.txt b/clang/examples/analyzer-plugin/CMakeLists.txt index b2a20e12782..1788d6c5cac 100644 --- a/clang/examples/analyzer-plugin/CMakeLists.txt +++ b/clang/examples/analyzer-plugin/CMakeLists.txt @@ -1 +1,10 @@ add_llvm_loadable_module(SampleAnalyzerPlugin MainCallChecker.cpp) + +if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN)) + target_link_libraries(SampleAnalyzerPlugin ${cmake_2_8_12_PRIVATE} + clangAnalysis + clangAST + clangStaticAnalyzerCore + LLVMSupport + ) +endif() |