]> granicus.if.org Git - clang/commitdiff
PrintFunctionNames: Fix Windows (MSV{S,C} and mingw) build.
authorMichael J. Spencer <bigcheesegs@gmail.com>
Tue, 14 Sep 2010 06:39:35 +0000 (06:39 +0000)
committerMichael J. Spencer <bigcheesegs@gmail.com>
Tue, 14 Sep 2010 06:39:35 +0000 (06:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113835 91177308-0d34-0410-b5e6-96231b3b80d8

examples/PrintFunctionNames/CMakeLists.txt

index 5ea75db42e02cd3766721bada9a6c40afceadeab..f8d7375906abd3f3b355cf3ab2d8735d5bd0df91 100644 (file)
@@ -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