Skip to content

Commit

Permalink
Merge pull request #11827 from AdmiralCurtiss/ctest-output-on-failure
Browse files Browse the repository at this point in the history
CMake: Set --output-on-failure flag for unittests target.
  • Loading branch information
lioncash committed May 14, 2023
2 parents 27d90a7 + df458ae commit 361a8b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/UnitTests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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")

Expand Down

0 comments on commit 361a8b2

Please sign in to comment.