Adds CMake conditional to disable pthreads on MinGW builds of gtest.

This commit is contained in:
U.G. Wilson 2015-04-08 16:26:20 -05:00
parent 908d38ebef
commit 036428e525

View File

@ -1,5 +1,10 @@
set(gtest_force_shared_crt ${MSVC_SHARED_RT} CACHE BOOL
"Use shared (DLL) run-time lib even when Google Test built as a static lib.")
if(MINGW)
set(gtest_disable_pthreads ON)
endif()
add_subdirectory(gmock-1.7.0)
include_directories(SYSTEM gmock-1.7.0/gtest/include)
include_directories(SYSTEM gmock-1.7.0/include)