summaryrefslogtreecommitdiff
path: root/examples/PrintFunctionNames
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2014-07-13 13:40:23 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2014-07-13 13:40:23 +0000
commitd7f86237745cf6dea85a03af9ed34832d9f150b7 (patch)
tree14aa368120dd5189e0eacb904d050c689381b60a /examples/PrintFunctionNames
parent8a8e287b86c1047420c1c34565feaa23b5475e9d (diff)
downloadclang-d7f86237745cf6dea85a03af9ed34832d9f150b7.tar.gz
[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/PrintFunctionNames')
-rw-r--r--examples/PrintFunctionNames/CMakeLists.txt9
1 files changed, 9 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()