From ce526b87007a15d86610eb16d8503188659f97e8 Mon Sep 17 00:00:00 2001 From: Lukas Mosimann Date: Thu, 22 Nov 2018 08:19:56 +0100 Subject: [PATCH] Issue #1955: Remove THREADS_PREFER_PTHREAD_FLAG --- googletest/cmake/internal_utils.cmake | 1 - 1 file changed, 1 deletion(-) diff --git a/googletest/cmake/internal_utils.cmake b/googletest/cmake/internal_utils.cmake index be2d91bf..99725b73 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)