Skip to content

Commit

Permalink
Update test.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
octoflar authored Jun 8, 2024
1 parent 9e96ec2 commit 7260408
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/cmake/test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ function(add_unit_test NAME)
add_executable(${NAME}
${ARGN}
${TEST}/cxx/unittest.h)
target_compile_options(${NAME} PRIVATE --coverage)
target_link_options(${NAME} PRIVATE --coverage)
target_compile_options(${NAME} PRIVATE $<$<CONFIG:Debug>:--coverage>)
target_link_options(${NAME} PRIVATE $<$<CONFIG:Debug>:--coverage>)
add_test(NAME ${NAME} COMMAND ${NAME})
set_tests_properties(${NAME} PROPERTIES LABELS unit TIMEOUT 10)
endfunction()
Expand Down

0 comments on commit 7260408

Please sign in to comment.