CMake: If we have `clang' under the `tools/' subdirectory, add it to
authorOscar Fuentes <ofv@wanadoo.es>
Sun, 26 Oct 2008 00:52:09 +0000 (00:52 +0000)
committerOscar Fuentes <ofv@wanadoo.es>
Sun, 26 Oct 2008 00:52:09 +0000 (00:52 +0000)
the build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58179 91177308-0d34-0410-b5e6-96231b3b80d8

tools/CMakeLists.txt

index 8909cbd266a9bfe9e4a2f4829d43bd8969300dd7..d05cb9aa9374cae6d39e62da02c8f501c77c48c1 100644 (file)
@@ -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 )