Skip to content

Commit 18e015d

Browse files
committed
Print test output on failure with check target
(cherry picked from commit 8ac9898)
1 parent 5b08aa4 commit 18e015d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ if ( ENABLE_TESTS )
242242
enable_testing()
243243

244244
# emulate GNU Autotools `make check`
245-
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} -C $<CONFIG>)
245+
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} -C $<CONFIG> --output-on-failure)
246246
add_custom_target(build_tests) # Make target to build all tests
247247
add_dependencies(build_tests ${LIB_NAME} ${LIB_NAME}-static)
248248

0 commit comments

Comments
 (0)