From df458aed89089a1e78ee3d3f13c0470da3c06188 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Sun, 14 May 2023 04:49:22 +0200 Subject: [PATCH] CMake: Set --output-on-failure flag for unittests target. --- Source/UnitTests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/UnitTests/CMakeLists.txt b/Source/UnitTests/CMakeLists.txt index d1294d4248..10dc4f397c 100644 --- a/Source/UnitTests/CMakeLists.txt +++ b/Source/UnitTests/CMakeLists.txt @@ -1,6 +1,6 @@ enable_testing() add_custom_target(unittests) -add_custom_command(TARGET unittests POST_BUILD COMMAND ${CMAKE_CTEST_COMMAND}) +add_custom_command(TARGET unittests POST_BUILD COMMAND ${CMAKE_CTEST_COMMAND} "--output-on-failure") string(APPEND CMAKE_RUNTIME_OUTPUT_DIRECTORY "/Tests")