summaryrefslogtreecommitdiff
path: root/tools/driver
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
commitb0d8671f95fe08a220118bca29063ba4d11a9dac (patch)
treecab72330a29dcc55d7c6f27692624f3e70469bd5 /tools/driver
parent7d96f6106bfbd85b1af06f34fdbf2834aad0e47e (diff)
downloadclang-b0d8671f95fe08a220118bca29063ba4d11a9dac.tar.gz
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158888 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/driver')
-rw-r--r--tools/driver/CMakeLists.txt38
1 files changed, 19 insertions, 19 deletions
diff --git a/tools/driver/CMakeLists.txt b/tools/driver/CMakeLists.txt
index ae49ac1eeb..be4b909489 100644
--- a/tools/driver/CMakeLists.txt
+++ b/tools/driver/CMakeLists.txt
@@ -1,4 +1,22 @@
-set( LLVM_USED_LIBS
+set( LLVM_LINK_COMPONENTS
+ ${LLVM_TARGETS_TO_BUILD}
+ asmparser
+ bitreader
+ bitwriter
+ codegen
+ instrumentation
+ ipo
+ linker
+ selectiondag
+ )
+
+add_clang_executable(clang
+ driver.cpp
+ cc1_main.cpp
+ cc1as_main.cpp
+ )
+
+target_link_libraries(clang
clangFrontendTool
clangAST
clangAnalysis
@@ -19,24 +37,6 @@ set( LLVM_USED_LIBS
clangStaticAnalyzerCore
)
-set( LLVM_LINK_COMPONENTS
- ${LLVM_TARGETS_TO_BUILD}
- asmparser
- bitreader
- bitwriter
- codegen
- instrumentation
- ipo
- linker
- selectiondag
- )
-
-add_clang_executable(clang
- driver.cpp
- cc1_main.cpp
- cc1as_main.cpp
- )
-
set_target_properties(clang PROPERTIES VERSION ${CLANG_EXECUTABLE_VERSION})
if(UNIX)