Revert "CMake: Update to use standard CMake dependency tracking facilities instead"
This reverts commit r113631
Conflicts:
CMakeLists.txt
lib/CodeGen/CMakeLists.txt
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113817 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/CMakeLists.txt b/lib/Analysis/CMakeLists.txt
index f05bbed..a2cfcfc 100644
--- a/lib/Analysis/CMakeLists.txt
+++ b/lib/Analysis/CMakeLists.txt
@@ -1,5 +1,7 @@
set(LLVM_NO_RTTI 1)
+set(LLVM_USED_LIBS clangBasic clangAST clangIndex)
+
add_clang_library(clangAnalysis
AnalysisContext.cpp
CFG.cpp
@@ -13,16 +15,5 @@
UninitializedValues.cpp
)
-target_link_libraries(clangAnalysis
- clangBasic
- clangAST
- clangIndex
- )
-
-add_dependencies(clangAnalysis
- ClangAttrClasses
- ClangAttrList
- ClangDiagnosticAnalysis
- ClangDeclNodes
- ClangStmtNodes
- )
+add_dependencies(clangAnalysis ClangAttrClasses ClangAttrList
+ ClangDiagnosticAnalysis ClangDeclNodes ClangStmtNodes)