diff --git a/CMakeLists.txt b/CMakeLists.txt index 27a1a5b1f..616af94da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -358,7 +358,6 @@ elseif (WIN32) message(FATAL_ERROR "Failed to find pthread library. Specify PTHREAD_LIBRARY.") endif() else () - set(THREADS_PREFER_PTHREAD_FLAG ON) find_package(Threads REQUIRED) set(PTHREAD_LIBRARY ${CMAKE_THREAD_LIBS_INIT}) endif()