summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Mosimann <lukas.mosimann@cscs.ch>2018-11-22 07:19:56 (GMT)
committerLukas Mosimann <lukas.mosimann@cscs.ch>2018-11-22 07:19:56 (GMT)
commitce526b87007a15d86610eb16d8503188659f97e8 (patch)
tree69ad4eb13331fa24f6b6a892ed79a590148276fe
parent3cf8f514d859d65b7202e51c662a03a92887b8e2 (diff)
downloadgoogletest-ce526b87007a15d86610eb16d8503188659f97e8.zip
googletest-ce526b87007a15d86610eb16d8503188659f97e8.tar.gz
googletest-ce526b87007a15d86610eb16d8503188659f97e8.tar.bz2
Issue #1955: Remove THREADS_PREFER_PTHREAD_FLAGrefs/pull/1977/head
-rw-r--r--googletest/cmake/internal_utils.cmake1
1 files changed, 0 insertions, 1 deletions
diff --git a/googletest/cmake/internal_utils.cmake b/googletest/cmake/internal_utils.cmake
index be2d91b..99725b7 100644
--- a/googletest/cmake/internal_utils.cmake
+++ b/googletest/cmake/internal_utils.cmake
@@ -56,7 +56,6 @@ macro(config_compiler_and_linker)
unset(GTEST_HAS_PTHREAD)
if (NOT gtest_disable_pthreads AND NOT MINGW)
# Defines CMAKE_USE_PTHREADS_INIT and CMAKE_THREAD_LIBS_INIT.
- set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads)
if (CMAKE_USE_PTHREADS_INIT)
set(GTEST_HAS_PTHREAD ON)