From c79eb87c11f6a69ff4f3183bb03eb89c6c9cd674 Mon Sep 17 00:00:00 2001 From: Vollstrecker Date: Wed, 14 Apr 2021 23:13:01 +0200 Subject: [PATCH] Mention to explicitely set the option to it's default. --- googletest/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/googletest/README.md b/googletest/README.md index 991a3170..0c10b148 100644 --- a/googletest/README.md +++ b/googletest/README.md @@ -96,6 +96,8 @@ FetchContent_Declare( googletest GIT_REPOSITORY https://github.com/google/googletest.git ) +# For Windows: Prevent overriding the parent project's compiler/linker settings +set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) FetchContent_MakeAvailable(googletest) # Now simply link against gtest or gtest_main as needed. Eg