# Copy an empty compile_flags.txt to make sure tests don't pick up arbitrary
# commands from parents.
file(TOUCH ${CMAKE_CURRENT_BINARY_DIR}/compile_flags.txt)

# Specialize the clang-doc target to avoid building other projects
add_lit_testsuite(check-clang-extra-clang-doc "Running clang-doc tests"
  ${CMAKE_CURRENT_BINARY_DIR}
  EXCLUDE_FROM_CHECK_ALL
  DEPENDS clang-doc
  DEPENDS ${LLVM_UTILS_DEPS}
)

if (LLVM_INCLUDE_BENCHMARKS)
   add_dependencies(check-clang-extra-clang-doc ClangDocBenchmark)
endif()
