]> granicus.if.org Git - clang/commitdiff
[CMake] Give explicit dependencies to a couple of modules, PrintFunctionNames and...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 13 Jul 2014 13:40:23 +0000 (13:40 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 13 Jul 2014 13:40:23 +0000 (13:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212906 91177308-0d34-0410-b5e6-96231b3b80d8

examples/PrintFunctionNames/CMakeLists.txt
examples/analyzer-plugin/CMakeLists.txt

index b79e575eaa6a0c4dbc1260bdcbc012708dc3d372..e700281ab48999bb37dd880360fc083c1965e61f 100644 (file)
@@ -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()
index b2a20e127827aee4690bc18f17c4d9bfcff63af3..1788d6c5cac96b7073152dee94e0e5870e7e8add 100644 (file)
@@ -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()