Issue #1955: Remove THREADS_PREFER_PTHREAD_FLAG

This commit is contained in:
Lukas Mosimann 2018-11-22 08:19:56 +01:00
parent 3cf8f514d8
commit ce526b8700

View File

@ -56,7 +56,6 @@ macro(config_compiler_and_linker)
unset(GTEST_HAS_PTHREAD) unset(GTEST_HAS_PTHREAD)
if (NOT gtest_disable_pthreads AND NOT MINGW) 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.
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads) find_package(Threads)
if (CMAKE_USE_PTHREADS_INIT) if (CMAKE_USE_PTHREADS_INIT)
set(GTEST_HAS_PTHREAD ON) set(GTEST_HAS_PTHREAD ON)