From 48ed0f59d5397c38baa0e4a0588e168b44e521ff Mon Sep 17 00:00:00 2001 From: Oscar Fuentes Date: Sun, 26 Oct 2008 00:52:09 +0000 Subject: CMake: If we have `clang' under the `tools/' subdirectory, add it to the build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58179 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools/CMakeLists.txt') diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 8909cbd266..d05cb9aa93 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -30,3 +30,7 @@ add_subdirectory(bugpoint) add_subdirectory(llvm-bcanalyzer) add_subdirectory(llvm-stub) add_subdirectory(llvmc2) + +if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/clang/CMakeLists.txt ) + add_subdirectory( ${CMAKE_CURRENT_SOURCE_DIR}/clang ) +endif( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/clang/CMakeLists.txt ) -- cgit v1.2.3-18-g5258