[cfe-commits] r125417 - in /cfe/trunk: lib/AST/CMakeLists.txt lib/Basic/CMakeLists.txt lib/CodeGen/CMakeLists.txt lib/Frontend/CMakeLists.txt lib/Lex/CMakeLists.txt lib/Serialization/CMakeLists.txt lib/StaticAnalyzer/Core/CMakeLists.txt tools/driver/CMakeLists.txt
Jeffrey Yasskin
jyasskin at google.com
Fri Feb 11 15:46:39 PST 2011
Author: jyasskin
Date: Fri Feb 11 17:46:38 2011
New Revision: 125417
URL: http://llvm.org/viewvc/llvm-project?rev=125417&view=rev
Log:
Add CMake dependencies so that LLVM_USED_LIBS order doesn't matter.
I also sorted the tools/driver dependencies since their order no
longer matters.
Modified:
cfe/trunk/lib/AST/CMakeLists.txt
cfe/trunk/lib/Basic/CMakeLists.txt
cfe/trunk/lib/CodeGen/CMakeLists.txt
cfe/trunk/lib/Frontend/CMakeLists.txt
cfe/trunk/lib/Lex/CMakeLists.txt
cfe/trunk/lib/Serialization/CMakeLists.txt
cfe/trunk/lib/StaticAnalyzer/Core/CMakeLists.txt
cfe/trunk/tools/driver/CMakeLists.txt
Modified: cfe/trunk/lib/AST/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/CMakeLists.txt?rev=125417&r1=125416&r2=125417&view=diff
==============================================================================
--- cfe/trunk/lib/AST/CMakeLists.txt (original)
+++ cfe/trunk/lib/AST/CMakeLists.txt Fri Feb 11 17:46:38 2011
@@ -1,3 +1,5 @@
+set(LLVM_LINK_COMPONENTS support)
+
set(LLVM_USED_LIBS clangBasic)
add_clang_library(clangAST
Modified: cfe/trunk/lib/Basic/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/CMakeLists.txt?rev=125417&r1=125416&r2=125417&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/CMakeLists.txt (original)
+++ cfe/trunk/lib/Basic/CMakeLists.txt Fri Feb 11 17:46:38 2011
@@ -1,3 +1,5 @@
+set(LLVM_LINK_COMPONENTS mc)
+
add_clang_library(clangBasic
Builtins.cpp
ConvertUTF.c
Modified: cfe/trunk/lib/CodeGen/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CMakeLists.txt?rev=125417&r1=125416&r2=125417&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CMakeLists.txt (original)
+++ cfe/trunk/lib/CodeGen/CMakeLists.txt Fri Feb 11 17:46:38 2011
@@ -1,3 +1,10 @@
+set(LLVM_LINK_COMPONENTS
+ asmparser
+ bitreader
+ bitwriter
+ ipo
+ )
+
set(LLVM_USED_LIBS clangBasic clangAST clangFrontend)
add_clang_library(clangCodeGen
Modified: cfe/trunk/lib/Frontend/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/CMakeLists.txt?rev=125417&r1=125416&r2=125417&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/CMakeLists.txt (original)
+++ cfe/trunk/lib/Frontend/CMakeLists.txt Fri Feb 11 17:46:38 2011
@@ -1,10 +1,11 @@
set( LLVM_USED_LIBS
+ clangAST
+ clangBasic
clangDriver
+ clangLex
clangParse
clangSema
- clangAST
- clangLex
- clangBasic
+ clangSerialization
)
add_clang_library(clangFrontend
Modified: cfe/trunk/lib/Lex/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/CMakeLists.txt?rev=125417&r1=125416&r2=125417&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/CMakeLists.txt (original)
+++ cfe/trunk/lib/Lex/CMakeLists.txt Fri Feb 11 17:46:38 2011
@@ -1,5 +1,7 @@
# TODO: Add -maltivec when ARCH is PowerPC.
+set(LLVM_LINK_COMPONENTS support)
+
set(LLVM_USED_LIBS clangBasic)
add_clang_library(clangLex
Modified: cfe/trunk/lib/Serialization/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/CMakeLists.txt?rev=125417&r1=125416&r2=125417&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/CMakeLists.txt (original)
+++ cfe/trunk/lib/Serialization/CMakeLists.txt Fri Feb 11 17:46:38 2011
@@ -1,4 +1,5 @@
-set(LLVM_USED_LIBS clangFrontend)
+# TODO: This must need some dependencies, but it builds fine without them.
+#set(LLVM_USED_LIBS ???)
add_clang_library(clangSerialization
GeneratePCH.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Core/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/CMakeLists.txt?rev=125417&r1=125416&r2=125417&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/CMakeLists.txt (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/CMakeLists.txt Fri Feb 11 17:46:38 2011
@@ -1,3 +1,5 @@
+set(LLVM_LINK_COMPONENTS support)
+
set(LLVM_USED_LIBS clangBasic clangLex clangAST clangFrontend clangRewrite)
add_clang_library(clangStaticAnalyzerCore
Modified: cfe/trunk/tools/driver/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/CMakeLists.txt?rev=125417&r1=125416&r2=125417&view=diff
==============================================================================
--- cfe/trunk/tools/driver/CMakeLists.txt (original)
+++ cfe/trunk/tools/driver/CMakeLists.txt Fri Feb 11 17:46:38 2011
@@ -1,19 +1,19 @@
set( LLVM_USED_LIBS
- clangFrontendTool
- clangFrontend
- clangDriver
- clangSerialization
+ clangAST
+ clangAnalysis
+ clangBasic
clangCodeGen
+ clangDriver
+ clangFrontend
+ clangFrontendTool
+ clangIndex
+ clangLex
clangParse
+ clangRewrite
clangSema
+ clangSerialization
clangStaticAnalyzerCheckers
clangStaticAnalyzerCore
- clangAnalysis
- clangIndex
- clangRewrite
- clangAST
- clangLex
- clangBasic
)
set( LLVM_LINK_COMPONENTS
More information about the cfe-commits
mailing list