CMake: Set --output-on-failure flag for unittests target.

This commit is contained in:
Admiral H. Curtiss 2023-05-14 04:49:22 +02:00
parent 27d90a7d7b
commit df458aed89
No known key found for this signature in database
GPG Key ID: F051B4C4044F33FB

View File

@ -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")