Merge pull request #11827 from AdmiralCurtiss/ctest-output-on-failure

CMake: Set --output-on-failure flag for unittests target.
This commit is contained in:
Mai 2023-05-14 00:40:11 -04:00 committed by GitHub
commit 361a8b2c8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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