summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-09-08 21:40:53 +0000
committerDouglas Gregor <dgregor@apple.com>2010-09-08 21:40:53 +0000
commitbfae8bd6259460ae0668cad39c141504511d19b0 (patch)
treeb5a5c89157c5d9f4c20eaf0ca0d09a8a16b55c7b
parent19311e70edaa2d7bb0d709344aebea4fbbae2da4 (diff)
Clean up some of the CMake dependencies
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113416 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/AST/CMakeLists.txt2
-rw-r--r--lib/Frontend/CMakeLists.txt14
-rw-r--r--lib/Index/CMakeLists.txt14
-rw-r--r--lib/Lex/CMakeLists.txt2
-rw-r--r--lib/Parse/CMakeLists.txt2
-rw-r--r--lib/Rewrite/CMakeLists.txt4
-rw-r--r--lib/Sema/CMakeLists.txt2
7 files changed, 39 insertions, 1 deletions
diff --git a/lib/AST/CMakeLists.txt b/lib/AST/CMakeLists.txt
index 82a81ec424..f56e6c41b0 100644
--- a/lib/AST/CMakeLists.txt
+++ b/lib/AST/CMakeLists.txt
@@ -1,5 +1,7 @@
set(LLVM_NO_RTTI 1)
+set(LLVM_USED_LIBS clangBasic)
+
add_clang_library(clangAST
APValue.cpp
ASTConsumer.cpp
diff --git a/lib/Frontend/CMakeLists.txt b/lib/Frontend/CMakeLists.txt
index 5a31495397..c432a96d0d 100644
--- a/lib/Frontend/CMakeLists.txt
+++ b/lib/Frontend/CMakeLists.txt
@@ -1,5 +1,19 @@
set(LLVM_NO_RTTI 1)
+set( LLVM_USED_LIBS
+ clangSerialization
+ clangCodeGen
+ clangParse
+ clangSema
+ clangChecker
+ clangAnalysis
+ clangIndex
+ clangRewrite
+ clangAST
+ clangLex
+ clangBasic
+ )
+
add_clang_library(clangFrontend
ASTConsumers.cpp
ASTMerge.cpp
diff --git a/lib/Index/CMakeLists.txt b/lib/Index/CMakeLists.txt
index 61f69b218e..ec39dffeba 100644
--- a/lib/Index/CMakeLists.txt
+++ b/lib/Index/CMakeLists.txt
@@ -1,5 +1,19 @@
set(LLVM_NO_RTTI 1)
+set( LLVM_USED_LIBS
+ clangSerialization
+ clangFrontend
+ clangParse
+ clangSema
+ clangChecker
+ clangAnalysis
+ clangIndex
+ clangRewrite
+ clangAST
+ clangLex
+ clangBasic
+ )
+
add_clang_library(clangIndex
ASTLocation.cpp
Analyzer.cpp
diff --git a/lib/Lex/CMakeLists.txt b/lib/Lex/CMakeLists.txt
index 632fbc6340..0476384eff 100644
--- a/lib/Lex/CMakeLists.txt
+++ b/lib/Lex/CMakeLists.txt
@@ -2,6 +2,8 @@ set(LLVM_NO_RTTI 1)
# TODO: Add -maltivec when ARCH is PowerPC.
+set(LLVM_USED_LIBS clangBasic)
+
add_clang_library(clangLex
HeaderMap.cpp
HeaderSearch.cpp
diff --git a/lib/Parse/CMakeLists.txt b/lib/Parse/CMakeLists.txt
index 189af3dc88..5b75a668a4 100644
--- a/lib/Parse/CMakeLists.txt
+++ b/lib/Parse/CMakeLists.txt
@@ -1,5 +1,7 @@
set(LLVM_NO_RTTI 1)
+set(LLVM_USED_LIBS clangBasic clangAST clangLex clangSema)
+
add_clang_library(clangParse
ParseAST.cpp
ParseCXXInlineMethods.cpp
diff --git a/lib/Rewrite/CMakeLists.txt b/lib/Rewrite/CMakeLists.txt
index ffeb3e66eb..3be27025fd 100644
--- a/lib/Rewrite/CMakeLists.txt
+++ b/lib/Rewrite/CMakeLists.txt
@@ -1,5 +1,7 @@
set(LLVM_NO_RTTI 1)
+set(LLVM_USED_LIBS clangBasic)
+
add_clang_library(clangRewrite
DeltaTree.cpp
FixItRewriter.cpp
@@ -14,7 +16,7 @@ add_clang_library(clangRewrite
TokenRewriter.cpp
)
-add_dependencies(clangBasic
+add_dependencies(clangRewrite
ClangAttrClasses
ClangAttrList
ClangDeclNodes
diff --git a/lib/Sema/CMakeLists.txt b/lib/Sema/CMakeLists.txt
index e65bb227f1..c220e90c12 100644
--- a/lib/Sema/CMakeLists.txt
+++ b/lib/Sema/CMakeLists.txt
@@ -1,5 +1,7 @@
set(LLVM_NO_RTTI 1)
+set(LLVM_USED_LIBS clangBasic clangAST clangLex clangAnalysis)
+
add_clang_library(clangSema
AnalysisBasedWarnings.cpp
AttributeList.cpp