diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt index 0a5f605b..f0822a67 100644 --- a/third_party/CMakeLists.txt +++ b/third_party/CMakeLists.txt @@ -13,6 +13,12 @@ include(datetime.cmake) add_subdirectory(fmt) + +if(WIN32) + # For Windows: Prevent overriding the parent project's compiler/linker settings + set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) +endif() + find_package(GTest QUIET) if(NOT ${GTEST_FOUND}) message(STATUS "Retrieving external GoogleTest library.")