Skip to content

Commit

Permalink
Set USES_TERMINAL on check/fastcheck custom commands
Browse files Browse the repository at this point in the history
This causes ctest to be given direct access to the terminal when
using the ninja generator.
  • Loading branch information
pcc authored and rocallahan committed Apr 24, 2024
1 parent 858a036 commit 5b7c1f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2060,9 +2060,9 @@ if(NOT N EQUAL 0)
set(JFLAG -j${N})
endif()

add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --verbose ${JFLAG})
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --verbose ${JFLAG} USES_TERMINAL)
# Run only syscallbuf-enabled and native-bitness tests
add_custom_target(fastcheck COMMAND ${CMAKE_CTEST_COMMAND} --verbose --exclude-regex '[-]' ${JFLAG})
add_custom_target(fastcheck COMMAND ${CMAKE_CTEST_COMMAND} --verbose --exclude-regex '[-]' ${JFLAG} USES_TERMINAL)

##--------------------------------------------------
## Package configuration
Expand Down

0 comments on commit 5b7c1f4

Please sign in to comment.