Skip to content

Commit adbbb4d

Browse files
committed
cmake: change gtest discovery to pre test
1 parent 65b525b commit adbbb4d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,11 @@ if (BUILD_TESTING)
403403
find_package(GTest REQUIRED)
404404
# Alias gtest_discover_tests increase discovery the timeout.
405405
function(gtest_discover_tests)
406-
_gtest_discover_tests(${ARGV} DISCOVERY_TIMEOUT 15)
406+
_gtest_discover_tests(
407+
${ARGV}
408+
DISCOVERY_MODE PRE_TEST
409+
DISCOVERY_TIMEOUT 15
410+
)
407411
endfunction()
408412
else()
409413
message(STATUS "Skipping Tests. Set BUILD_TESTING to On to compile tests.")

0 commit comments

Comments
 (0)