mirror of
https://github.com/monero-project/monero.git
synced 2024-11-17 16:27:39 +00:00
Merge pull request #3604
54d9fff
gtest: Fix compilation on MinGW with pthread /googletest#621 (stoffu)
This commit is contained in:
commit
13d73d9ed6
2 changed files with 2 additions and 5 deletions
|
@ -46,7 +46,7 @@ endmacro()
|
||||||
# Google Mock. You can tweak these definitions to suit your need. A
|
# Google Mock. You can tweak these definitions to suit your need. A
|
||||||
# variable's value is empty before it's explicitly assigned to.
|
# variable's value is empty before it's explicitly assigned to.
|
||||||
macro(config_compiler_and_linker)
|
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.
|
# Defines CMAKE_USE_PTHREADS_INIT and CMAKE_THREAD_LIBS_INIT.
|
||||||
find_package(Threads)
|
find_package(Threads)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -1553,10 +1553,7 @@ class GTEST_API_ Notification {
|
||||||
};
|
};
|
||||||
# endif // GTEST_HAS_NOTIFICATION_
|
# endif // GTEST_HAS_NOTIFICATION_
|
||||||
|
|
||||||
// On MinGW, we can have both GTEST_OS_WINDOWS and GTEST_HAS_PTHREAD
|
# if GTEST_HAS_PTHREAD
|
||||||
// defined, but we don't want to use MinGW's pthreads implementation, which
|
|
||||||
// has conformance problems with some versions of the POSIX standard.
|
|
||||||
# if GTEST_HAS_PTHREAD && !GTEST_OS_WINDOWS_MINGW
|
|
||||||
|
|
||||||
// As a C-function, ThreadFuncWithCLinkage cannot be templated itself.
|
// As a C-function, ThreadFuncWithCLinkage cannot be templated itself.
|
||||||
// Consequently, it cannot select a correct instantiation of ThreadWithParam
|
// Consequently, it cannot select a correct instantiation of ThreadWithParam
|
||||||
|
|
Loading…
Reference in a new issue