Tweak CMakeLists not for libclang to depend on the variable CLANG_TOOL_EXTRA_BUILD.

llvm-svn: 262606
This commit is contained in:
NAKAMURA Takumi 2016-03-03 11:09:43 +00:00
parent c1f7f1a31f
commit dd30704201
2 changed files with 4 additions and 2 deletions

View File

@ -7,7 +7,6 @@ add_clang_subdirectory(clang-format-vs)
add_clang_subdirectory(clang-fuzzer)
add_clang_subdirectory(c-index-test)
add_clang_subdirectory(libclang)
if(CLANG_ENABLE_ARCMT)
add_clang_subdirectory(arcmt-test)
@ -26,3 +25,6 @@ endif()
# to keep the primary Clang repository small and focused.
# It also may be included by LLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR.
add_llvm_external_project(clang-tools-extra extra)
# libclang may require clang-tidy in clang-tools-extra.
add_clang_subdirectory(libclang)

View File

@ -47,7 +47,7 @@ if (CLANG_ENABLE_ARCMT)
list(APPEND LIBS clangARCMigrate)
endif ()
if (CLANG_TOOL_EXTRA_BUILD)
if (TARGET clangTidyPlugin)
add_definitions(-DCLANG_TOOL_EXTRA_BUILD)
list(APPEND LIBS clangTidyPlugin)
endif ()