[cfe-commits] r113835 - /cfe/trunk/examples/PrintFunctionNames/CMakeLists.txt

Michael J. Spencer bigcheesegs at gmail.com
Mon Sep 13 23:39:35 PDT 2010


Author: mspencer
Date: Tue Sep 14 01:39:35 2010
New Revision: 113835

URL: http://llvm.org/viewvc/llvm-project?rev=113835&view=rev
Log:
PrintFunctionNames: Fix Windows (MSV{S,C} and mingw) build.

Modified:
    cfe/trunk/examples/PrintFunctionNames/CMakeLists.txt

Modified: cfe/trunk/examples/PrintFunctionNames/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/examples/PrintFunctionNames/CMakeLists.txt?rev=113835&r1=113834&r2=113835&view=diff
==============================================================================
--- cfe/trunk/examples/PrintFunctionNames/CMakeLists.txt (original)
+++ cfe/trunk/examples/PrintFunctionNames/CMakeLists.txt Tue Sep 14 01:39:35 2010
@@ -2,6 +2,34 @@
 
 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





More information about the cfe-commits mailing list