Merge pull request #11827 from AdmiralCurtiss/ctest-output-on-failure
CMake: Set --output-on-failure flag for unittests target.
This commit is contained in:
commit
361a8b2c8e
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in New Issue