浏览代码

CMakeLists: output test results on fail

Kosma Moczek 3 年之前
父节点
当前提交
163fb72250
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      CMakeLists.txt

+ 1 - 1
CMakeLists.txt

@@ -24,7 +24,7 @@ target_include_directories(tests PUBLIC ${CHECK_INCLUDE_DIRS})
 target_compile_options(tests PUBLIC ${CHECK_CFLAGS_OTHER})
 
 add_test(NAME tests COMMAND $<TARGET_FILE:tests>)
-
+list(APPEND CMAKE_CTEST_ARGUMENTS "--output-on-failure")
 
 find_program(SCAN_FOUND scan-build)