Skip to content

Commit

Permalink
fix gtest_discover_tests on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
chistopher committed Oct 11, 2023
1 parent 4c5fc01 commit 1634de6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,10 @@ set(BUILD_GMOCK OFF) # see bug https://github.com/google/googletest/issues/4384
# earlier CMake or a failed find_package(GTest) call lead to a download in the build dir
FetchContent_MakeAvailable(GTest)

# see https://github.com/google/googletest/issues/3565
if(MSVC)
set(CMAKE_GTEST_DISCOVER_TESTS_DISCOVERY_MODE PRE_TEST)
endif()

add_subdirectory(girgs-test)
add_subdirectory(hypergirgs-test)

0 comments on commit 1634de6

Please sign in to comment.