summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorOscar Fuentes <ofv@wanadoo.es>2008-10-26 00:52:09 +0000
committerOscar Fuentes <ofv@wanadoo.es>2008-10-26 00:52:09 +0000
commite638f5d85481fa6ef30d65ae19aae418cb191752 (patch)
treee404a96e78f29f66908d0685787f6d6fb9d99b5e /llvm
parent20baf2fc3c794a3c2ffb1d0bff2606a62ed42fc4 (diff)
downloadbcm5719-llvm-e638f5d85481fa6ef30d65ae19aae418cb191752.tar.gz
bcm5719-llvm-e638f5d85481fa6ef30d65ae19aae418cb191752.zip
CMake: If we have `clang' under the `tools/' subdirectory, add it to
the build. llvm-svn: 58179
Diffstat (limited to 'llvm')
-rw-r--r--llvm/tools/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/tools/CMakeLists.txt b/llvm/tools/CMakeLists.txt
index 8909cbd266a..d05cb9aa937 100644
--- a/llvm/tools/CMakeLists.txt
+++ b/llvm/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 )
OpenPOWER on IntegriCloud