aboutsummaryrefslogtreecommitdiff
path: root/tests/gtest/cmake
diff options
context:
space:
mode:
authorstoffu <stoffu@protonmail.ch>2018-04-11 11:35:45 +0900
committerstoffu <stoffu@protonmail.ch>2018-04-11 11:35:45 +0900
commit54d9fffa10a3bcc2641567b4cc9774edacd1d6d5 (patch)
tree3ce6ebef7ee667ad47561072603a8f832a31a39f /tests/gtest/cmake
parentMerge pull request #3434 (diff)
downloadmonero-54d9fffa10a3bcc2641567b4cc9774edacd1d6d5.tar.xz
gtest: Fix compilation on MinGW with pthread /googletest#621
Diffstat (limited to 'tests/gtest/cmake')
-rw-r--r--tests/gtest/cmake/internal_utils.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gtest/cmake/internal_utils.cmake b/tests/gtest/cmake/internal_utils.cmake
index 364db5970..567edaa30 100644
--- a/tests/gtest/cmake/internal_utils.cmake
+++ b/tests/gtest/cmake/internal_utils.cmake
@@ -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()