diff --git a/source/tests/CMakeLists.txt b/source/tests/CMakeLists.txt index 93b833c..661c0af 100644 --- a/source/tests/CMakeLists.txt +++ b/source/tests/CMakeLists.txt @@ -21,7 +21,9 @@ FetchContent_MakeAvailable(GTest) # see https://github.com/google/googletest/issues/3565 if(MSVC) - set(CMAKE_GTEST_DISCOVER_TESTS_DISCOVERY_MODE PRE_TEST) + foreach(target gtest gtest_main) + set_target_properties(${target} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) + endforeach() endif() add_subdirectory(girgs-test)