From 4a8dd7ced62e44dd3f92afc3d725a7b64bc8e000 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Sun, 13 Jul 2014 13:36:48 +0000 Subject: [PATCH] [CMake] Add LLVM_LINK_COMPONENTS to loadable modules, LLVMHello and BugpointPasses, on Win32. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212904 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Hello/CMakeLists.txt | 4 ++++ tools/bugpoint-passes/CMakeLists.txt | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/lib/Transforms/Hello/CMakeLists.txt b/lib/Transforms/Hello/CMakeLists.txt index e724dbc8be8..3851b35871f 100644 --- a/lib/Transforms/Hello/CMakeLists.txt +++ b/lib/Transforms/Hello/CMakeLists.txt @@ -6,6 +6,10 @@ if( NOT LLVM_REQUIRES_RTTI ) endif() endif() +if(WIN32 OR CYGWIN) + set(LLVM_LINK_COMPONENTS Core Support) +endif() + add_llvm_loadable_module( LLVMHello Hello.cpp ) diff --git a/tools/bugpoint-passes/CMakeLists.txt b/tools/bugpoint-passes/CMakeLists.txt index b7ee62673c7..de68bb5d31d 100644 --- a/tools/bugpoint-passes/CMakeLists.txt +++ b/tools/bugpoint-passes/CMakeLists.txt @@ -10,6 +10,10 @@ if( NOT LLVM_REQUIRES_RTTI ) endif() endif() +if(WIN32 OR CYGWIN) + set(LLVM_LINK_COMPONENTS Core) +endif() + add_llvm_loadable_module( BugpointPasses TestPasses.cpp )