diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-09-14 06:39:35 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-09-14 06:39:35 +0000 |
commit | f5ddcc0aca828f312a8151940be71743620d1f65 (patch) | |
tree | 13f6ae71098c933975a400bf8d254076827bebf1 /examples/PrintFunctionNames | |
parent | 44f8ef13a3af125eecd408d0fad79a4a1eda5366 (diff) |
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
Diffstat (limited to 'examples/PrintFunctionNames')
-rw-r--r-- | examples/PrintFunctionNames/CMakeLists.txt | 28 |
1 files changed, 28 insertions, 0 deletions
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 |