summaryrefslogtreecommitdiffstats
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
commit9b9de47d15171c440fd62c3bc4bf2ac968ee63bf (patch)
tree125ac3adedccf24c122b7e9b1cc944f92c1c4ef9
parent6672b8e4ee06d78c0f4e95a0922555daeb3e3f40 (diff)
downloadbcm5719-llvm-9b9de47d15171c440fd62c3bc4bf2ac968ee63bf.tar.gz
bcm5719-llvm-9b9de47d15171c440fd62c3bc4bf2ac968ee63bf.zip
[CMake] Give explicit dependencies to a couple of modules, PrintFunctionNames and SampleAnalyzerPlugin, for Win32.DLL.
llvm-svn: 212906
-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 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()
OpenPOWER on IntegriCloud