From: NAKAMURA Takumi Date: Wed, 10 Oct 2012 13:46:18 +0000 (+0000) Subject: [CMake] clang/tools/extra may be included by LLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ff2fb961dcaa3988ef3efe9fa0f1b12d3f093162;p=clang [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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165620 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 3a6fef5575..cccff5d22f 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -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)