summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-06-21 01:30:21 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-06-21 01:30:21 +0000
commit28969b41392de338668f7a68f68aa036c2dfdd3c (patch)
treef3a4ca0dc40a591e778c50ccf15092eed3dd4a14 /clang/lib/Lex
parentc7b0bdffe75c05aeb4a0689086d899c5527c3c7b (diff)
downloadbcm5719-llvm-28969b41392de338668f7a68f68aa036c2dfdd3c.tar.gz
bcm5719-llvm-28969b41392de338668f7a68f68aa036c2dfdd3c.zip
Remove a goofy CMake hack and use the standard CMake facilities to
express library-level dependencies within Clang. This is no more verbose really, and plays nicer with the rest of the CMake facilities. It should also have no change in functionality. llvm-svn: 158888
Diffstat (limited to 'clang/lib/Lex')
-rw-r--r--clang/lib/Lex/CMakeLists.txt11
1 files changed, 8 insertions, 3 deletions
diff --git a/clang/lib/Lex/CMakeLists.txt b/clang/lib/Lex/CMakeLists.txt
index 0a2ffdbf232..7399de11cb6 100644
--- a/clang/lib/Lex/CMakeLists.txt
+++ b/clang/lib/Lex/CMakeLists.txt
@@ -2,8 +2,6 @@
set(LLVM_LINK_COMPONENTS support)
-set(LLVM_USED_LIBS clangBasic)
-
add_clang_library(clangLex
HeaderMap.cpp
HeaderSearch.cpp
@@ -28,4 +26,11 @@ add_clang_library(clangLex
TokenLexer.cpp
)
-add_dependencies(clangLex ClangDiagnosticLex ClangAttrSpellings)
+add_dependencies(clangLex
+ ClangDiagnosticLex
+ ClangAttrSpellings
+ )
+
+target_link_libraries(clangLex
+ clangBasic
+ )
OpenPOWER on IntegriCloud