Skip to content
Snippets Groups Projects
Commit ce526b87 authored by Lukas Mosimann's avatar Lukas Mosimann
Browse files

Issue #1955: Remove THREADS_PREFER_PTHREAD_FLAG

parent 3cf8f514
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment