From cd8168421f2bf9f544fec4689e88ed9548aeda97 Mon Sep 17 00:00:00 2001 From: Christopher Weyand Date: Wed, 11 Oct 2023 15:18:17 +0200 Subject: [PATCH] debug windows --- source/tests/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)