From: Michael J. Spencer Date: Tue, 14 Sep 2010 06:39:35 +0000 (+0000) Subject: PrintFunctionNames: Fix Windows (MSV{S,C} and mingw) build. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f5ddcc0aca828f312a8151940be71743620d1f65;p=clang PrintFunctionNames: Fix Windows (MSV{S,C} and mingw) build. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113835 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/examples/PrintFunctionNames/CMakeLists.txt b/examples/PrintFunctionNames/CMakeLists.txt index 5ea75db42e..f8d7375906 100644 --- a/examples/PrintFunctionNames/CMakeLists.txt +++ b/examples/PrintFunctionNames/CMakeLists.txt @@ -2,6 +2,34 @@ set(MODULE TRUE) set(LLVM_NO_RTTI 1) +set( LLVM_USED_LIBS + clangFrontendTool + clangFrontend + clangDriver + clangSerialization + clangCodeGen + clangParse + clangSema + clangChecker + clangAnalysis + clangIndex + clangRewrite + clangAST + clangLex + clangBasic + ) + +# Why do we have to link to all this just to print out function names? +set( LLVM_LINK_COMPONENTS + ${LLVM_TARGETS_TO_BUILD} + asmparser + bitreader + bitwriter + codegen + ipo + selectiondag + ) + add_clang_library(PrintFunctionNames PrintFunctionNames.cpp) set_target_properties(PrintFunctionNames