From 036428e525c55d9c2a287102911a4e5db283c50d Mon Sep 17 00:00:00 2001 From: "U.G. Wilson" Date: Wed, 8 Apr 2015 16:26:20 -0500 Subject: [PATCH] Adds CMake conditional to disable pthreads on MinGW builds of gtest. --- test/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 61f1f7f..072c4db 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -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)