I am trying to integrate GTest with CMake as seamlessly as possible. But the default build type for my test projects are /MDd
/MDd
If Ted Middleton's answer doesn't work, try to use FORCE:
set( gtest_force_shared_crt ON CACHE BOOL "Always use msvcrt.dll" FORCE)
It worked for me