Commit ecc14866 authored by Milo Yip's avatar Milo Yip

Update CMakeLists.txt

Move `gtest_force_shared_crt` option to Win32 VC only.
parent 1b0fe576
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment