Skip to content
Snippets Groups Projects
Commit 6ffb3a58 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Set the flag THREADS_PREFER_PTHREAD_FLAG

...unless specificially set to false by the user.
parent 430b33ab
No related branches found
No related tags found
No related merge requests found
......@@ -270,6 +270,9 @@ cmake_pop_check_state()
# find the threading library
# Use a copy FindThreads from CMake 3.1 due to its support of pthread
if(NOT DEFINED THREADS_PREFER_PTHREAD_FLAG)
set(THREADS_PREFER_PTHREAD_FLAG 1)
endif()
if(${CMAKE_VERSION} VERSION_LESS "3.1")
find_package(ThreadsCMake31)
else()
......
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