[CMake] clang/tools/extra may be included by LLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR.

LLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR=/path/to/llvm-srcroot/tools/clang/tools/extra, by default.

llvm-svn: 165620
This commit is contained in:
NAKAMURA Takumi 2012-10-10 13:46:18 +00:00
parent 02a0ac4ab3
commit e9894029ba
1 changed files with 2 additions and 4 deletions

View File

@ -10,7 +10,5 @@ add_subdirectory(clang-check)
# subdirectory. It contains tools developed as part of the Clang/LLVM project
# on top of the Clang tooling platform. We keep them in a separate repository
# to keep the primary Clang repository small and focused.
if(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/extra AND
EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/extra/CMakeLists.txt)
add_subdirectory(extra)
endif()
# It also may be included by LLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR.
add_llvm_external_project(clang-tools-extra extra)