clang-tools-extra/test/CMakeLists.txt: Rework r297806 (D29851) to make sure test utils should be built.

FIXME: This may be moved to llvm's add_lit_target().
llvm-svn: 301762
This commit is contained in:
NAKAMURA Takumi 2017-04-30 03:19:04 +00:00
parent 866165309f
commit 68ce7c3b0d
1 changed files with 9 additions and 6 deletions

View File

@ -55,12 +55,15 @@ set(CLANG_TOOLS_TEST_DEPS
ExtraToolsUnitTests
)
if(NOT LLVM_UTILS_PROVIDED)
list(APPEND CLANG_TOOLS_TEST_DEPS
# Base line deps.
FileCheck count not
)
endif()
set(llvm_utils
FileCheck count not
)
foreach(t ${llvm_utils})
if(TARGET ${t})
list(APPEND CLANG_TOOLS_TEST_DEPS ${t})
endif()
endforeach()
add_lit_testsuite(check-clang-tools "Running the Clang extra tools' regression tests"
${CMAKE_CURRENT_BINARY_DIR}