diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-07-13 13:40:23 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-07-13 13:40:23 +0000 |
commit | d7f86237745cf6dea85a03af9ed34832d9f150b7 (patch) | |
tree | 14aa368120dd5189e0eacb904d050c689381b60a /examples | |
parent | 8a8e287b86c1047420c1c34565feaa23b5475e9d (diff) |
[CMake] Give explicit dependencies to a couple of modules, PrintFunctionNames and SampleAnalyzerPlugin, for Win32.DLL.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212906 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r-- | examples/PrintFunctionNames/CMakeLists.txt | 9 | ||||
-rw-r--r-- | examples/analyzer-plugin/CMakeLists.txt | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/examples/PrintFunctionNames/CMakeLists.txt b/examples/PrintFunctionNames/CMakeLists.txt index b79e575eaa..e700281ab4 100644 --- a/examples/PrintFunctionNames/CMakeLists.txt +++ b/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/examples/analyzer-plugin/CMakeLists.txt b/examples/analyzer-plugin/CMakeLists.txt index b2a20e1278..1788d6c5ca 100644 --- a/examples/analyzer-plugin/CMakeLists.txt +++ b/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() |