From d7f86237745cf6dea85a03af9ed34832d9f150b7 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Sun, 13 Jul 2014 13:40:23 +0000 Subject: [PATCH] [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 --- examples/PrintFunctionNames/CMakeLists.txt | 9 +++++++++ examples/analyzer-plugin/CMakeLists.txt | 9 +++++++++ 2 files changed, 18 insertions(+) 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() -- 2.50.1