From d5989ec4791340b609f7ed083d7788250ddc8b86 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Mon, 30 Oct 2023 11:11:01 +0100 Subject: [PATCH] fix(cpn): Prevent googletest installation (#4265) --- cmake/FetchGtest.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmake/FetchGtest.cmake b/cmake/FetchGtest.cmake index 7a1bffc08b6..7cd98ae6a07 100644 --- a/cmake/FetchGtest.cmake +++ b/cmake/FetchGtest.cmake @@ -8,6 +8,12 @@ FetchContent_Declare( GIT_TAG f8d7d77c06936315286eb55f8de22cd23c188571 # v1.14.0 ) +# For Windows: Prevent overriding the parent project's compiler/linker settings +set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) + +option(BUILD_GMOCK "Build GMock" OFF) +option(INSTALL_GTEST "Install GTest" OFF) + FetchContent_MakeAvailable(googletest) include_directories(