From 6642b64c780e66189e48ac377a4ce3937a4e8a31 Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Sun, 1 Sep 2013 10:19:03 -0400 Subject: [PATCH] Make sure that on MSVC platforms we force shared CRT to be consistent with other CMake defaults. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) 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)