Przeglądaj źródła

CMakeLists: output test results on fail

Kosma Moczek 3 lat temu
rodzic
commit
163fb72250
1 zmienionych plików z 1 dodań i 1 usunięć
  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})
 target_compile_options(tests PUBLIC ${CHECK_CFLAGS_OTHER})
 
 
 add_test(NAME tests COMMAND $<TARGET_FILE:tests>)
 add_test(NAME tests COMMAND $<TARGET_FILE:tests>)
-
+list(APPEND CMAKE_CTEST_ARGUMENTS "--output-on-failure")
 
 
 find_program(SCAN_FOUND scan-build)
 find_program(SCAN_FOUND scan-build)