Skip to content

Commit

Permalink
[FIX] fix detection of pthread on some linuxes
Browse files Browse the repository at this point in the history
  • Loading branch information
h-2 committed Aug 2, 2019
1 parent a60194e commit b9ba668
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions build_system/seqan3-config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,24 @@ else ()
endif ()
endif ()

# ----------------------------------------------------------------------------
# thread support (pthread, windows threads)
# ----------------------------------------------------------------------------

set (THREADS_PREFER_PTHREAD_FLAG TRUE)
find_package (Threads QUIET)

if (Threads_FOUND)
set (SEQAN3_LIBRARIES ${SEQAN3_LIBRARIES} Threads::Threads)
if ("${CMAKE_THREAD_LIBS_INIT}" STREQUAL "")
seqan3_config_print ("Thread support: builtin.")
else ()
seqan3_config_print ("Thread support: via ${CMAKE_THREAD_LIBS_INIT}")
endif ()
else ()
seqan3_config_print ("Thread support: not found.")
endif ()

# ----------------------------------------------------------------------------
# Require Ranges and SDSL
# ----------------------------------------------------------------------------
Expand Down

0 comments on commit b9ba668

Please sign in to comment.