CTest: --progress doesn't collapse output when using ninja
If run directly in terminal, ctest --progress
collapses the output.
But if there is some kind of indirection, e.g. a custom target:
add_custom_target(
check-tests
COMMAND "${CMAKE_COMMAND}" -E echo
COMMAND "${CMAKE_CTEST_COMMAND}" --progress --output-on-failure
COMMENT "Running tests..."
VERBATIM)
the output is collapsed when using makefiles but not when using ninja.
Is it possible to get this functionality?