mirror of
https://github.com/monero-project/monero.git
synced 2025-08-07 09:32:17 -04:00
gtest: Fix compilation on MinGW with pthread /googletest#621
This commit is contained in:
parent
8361d60aef
commit
54d9fffa10
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
|
||||
# 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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue