Update CMakeLists.txt

Move `gtest_force_shared_crt` option to Win32 VC only.
This commit is contained in:
Milo Yip 2015-02-15 14:19:56 +08:00
parent 1b0fe576d7
commit ecc14866e0

View File

@ -2,10 +2,10 @@ find_package(GTestSrc)
IF(GTESTSRC_FOUND)
enable_testing()
set(gtest_force_shared_crt ON)
if (WIN32 AND (NOT CYGWIN) AND (NOT MINGW))
set(gtest_disable_pthreads ON)
set(gtest_force_shared_crt ON)
endif()
add_subdirectory(${GTEST_SOURCE_DIR} ${CMAKE_BINARY_DIR}/googletest)