[cfe-commits] [PATCH] problems building shared libraries with cmake
Douglas Gregor
dgregor at apple.com
Mon Oct 5 15:38:26 PDT 2009
On Oct 3, 2009, at 10:23 PM, Peter Collingbourne wrote:
> I found that some additional dependencies are required when building
> with cmake and shared libraries ("cmake -DBUILD_SHARED_LIBS=ON");
> this patch adds those dependencies.
Index: tools/index-test/CMakeLists.txt
===================================================================
--- tools/index-test/CMakeLists.txt (revision 83272)
+++ tools/index-test/CMakeLists.txt (working copy)
@@ -7,11 +7,20 @@
clangAST
clangLex
clangBasic
+ clangRewrite
+ clangParse
+ clangAnalysis
+ clangCodeGen
)
set( LLVM_LINK_COMPONENTS
bitreader
mc
+ ipo
+ scalaropts
+ codegen
+ bitwriter
+ selectiondag
)
This doesn't make a lot of sense. The index library's test harness
should not depend on anything related to code generation, much less on
optimization passes. If these are real dependencies, we need to try to
break them.
- Doug
More information about the cfe-commits
mailing list