Permalink
Browse files

revert compilation on MinGW with pthread

  • Loading branch information...
miltonf committed Feb 3, 2019
1 parent 954439f commit 954948827777c8c87c21562fa80e7c5d850fce13
Showing with 2 additions and 2 deletions.
  1. +1 −1 tests/gtest/cmake/internal_utils.cmake
  2. +1 −1 tests/gtest/include/gtest/internal/gtest-port.h
@@ -46,7 +46,7 @@ endmacro()
# Google Mock. You can tweak these definitions to suit your need. A
# variable's value is empty before it's explicitly assigned to.
macro(config_compiler_and_linker)
if (NOT gtest_disable_pthreads)
if (NOT gtest_disable_pthreads AND NOT MINGW)
# Defines CMAKE_USE_PTHREADS_INIT and CMAKE_THREAD_LIBS_INIT.
find_package(Threads)
endif()
@@ -1553,7 +1553,7 @@ class GTEST_API_ Notification {
};
# endif // GTEST_HAS_NOTIFICATION_

# if GTEST_HAS_PTHREAD && !GTEST_OS_WINDOWS_MINGW
# if GTEST_HAS_PTHREAD

// As a C-function, ThreadFuncWithCLinkage cannot be templated itself.
// Consequently, it cannot select a correct instantiation of ThreadWithParam

0 comments on commit 9549488

Please sign in to comment.