diff --git a/CMakeLists.txt b/CMakeLists.txt index 2723e3c..10278be 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -102,6 +102,9 @@ ENDFOREACH() ENABLE_TESTING() +IF(MSVC) + SET(gtest_force_shared_crt TRUE) +ENDIF(MSVC) ADD_SUBDIRECTORY(GTest) FOREACH(DIR ${FASTC_DIRECTORIES}) SET(TESTDIR ${FasTC_SOURCE_DIR}/${DIR}/test)