forked from OSchip/llvm-project
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:
parent
866165309f
commit
68ce7c3b0d
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue