Skip to content

Commit 5084583

Browse files
committed
Switch away from gtest_discover_tests, it seems to not work quite right
1 parent 2b6cf03 commit 5084583

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
include(CTest)
2-
include(GoogleTest)
32
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
43

54
set(
@@ -118,7 +117,7 @@ function(test_cpptrace)
118117
target_compile_definitions("${CPPTRACE_TEST_NAME}" PRIVATE CPPTRACE_BUILD_NO_SYMBOLS)
119118
endif()
120119
target_include_directories("${CPPTRACE_TEST_NAME}" PRIVATE ../src)
121-
gtest_discover_tests(${CPPTRACE_TEST_NAME})
120+
add_test(NAME ${CPPTRACE_TEST_NAME} COMMAND ${CPPTRACE_TEST_NAME})
122121
endfunction()
123122

124123
# primarily a workaround for github actions issue https://github.com/actions/runner-images/issues/8659

0 commit comments

Comments
 (0)