From d78d4830e4b1d5e8982f3661b46fd3b92f720e0f Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Fri, 27 Oct 2023 13:19:53 +0100 Subject: [PATCH] Always output test failures when they happen With CMake 3.17+, we can specify arguments for ctest to use when run, so always specify output-on-failure to always show the failed test output. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index eb07906012..2b2bf4b2d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1040,6 +1040,7 @@ add_custom_target( uninstall include( CTest ) enable_testing() +list( APPEND CMAKE_CTEST_ARGUMENTS "--output-on-failure" ) #================================================ # Let CMake look in these directories for nested