From a43a21ef141fd2e814f4936ff0291a8306e00b97 Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Tue, 24 Mar 2009 17:52:34 +0000 Subject: [PATCH] Really fix cmake style builds. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67633 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CMakeLists.txt | 1 + lib/Driver/CMakeLists.txt | 5 +++++ lib/Frontend/CMakeLists.txt | 2 +- tools/clang-cc/CMakeLists.txt | 2 +- tools/driver/CMakeLists.txt | 4 +++- 5 files changed, 11 insertions(+), 3 deletions(-) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 12ea2aa9fb..e3da531011 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -7,4 +7,5 @@ add_subdirectory(Sema) add_subdirectory(CodeGen) add_subdirectory(Analysis) add_subdirectory(Rewrite) +add_subdirectory(Driver) add_subdirectory(Frontend) diff --git a/lib/Driver/CMakeLists.txt b/lib/Driver/CMakeLists.txt index bd4c9fde76..7147d8f0be 100644 --- a/lib/Driver/CMakeLists.txt +++ b/lib/Driver/CMakeLists.txt @@ -7,8 +7,13 @@ add_clang_library(clangDriver Compilation.cpp Driver.cpp HostInfo.cpp + Job.cpp OptTable.cpp Option.cpp Phases.cpp + Tool.cpp + ToolChain.cpp + ToolChains.cpp + Tools.cpp Types.cpp ) diff --git a/lib/Frontend/CMakeLists.txt b/lib/Frontend/CMakeLists.txt index 2ff67953f7..680a9a8fc9 100644 --- a/lib/Frontend/CMakeLists.txt +++ b/lib/Frontend/CMakeLists.txt @@ -1,6 +1,6 @@ set(LLVM_NO_RTTI 1) -add_clang_library(clangDriver +add_clang_library(clangFrontend HTMLDiagnostics.cpp InitHeaderSearch.cpp TextDiagnosticBuffer.cpp diff --git a/tools/clang-cc/CMakeLists.txt b/tools/clang-cc/CMakeLists.txt index 9dd596c2ce..70e260a856 100644 --- a/tools/clang-cc/CMakeLists.txt +++ b/tools/clang-cc/CMakeLists.txt @@ -5,7 +5,7 @@ set( LLVM_USED_LIBS clangAnalysis clangRewrite clangSema - clangDriver + clangFrontend clangAST clangParse clangLex diff --git a/tools/driver/CMakeLists.txt b/tools/driver/CMakeLists.txt index b2bc0bdb2f..fc7464afe0 100644 --- a/tools/driver/CMakeLists.txt +++ b/tools/driver/CMakeLists.txt @@ -1,3 +1,5 @@ +set(LLVM_NO_RTTI 1) + set( LLVM_USED_LIBS clangDriver clangBasic @@ -5,6 +7,6 @@ set( LLVM_USED_LIBS set(LLVM_LINK_COMPONENTS system support bitreader bitwriter) -add_clang_tool(clang +add_clang_executable(clang driver.cpp )