Link against system threads library

This commit is contained in:
Dennis Klein
2018-08-08 13:24:26 +02:00
committed by Dennis Klein
parent ef3eb5f83e
commit 1e0159b775
2 changed files with 5 additions and 1 deletions

View File

@@ -38,6 +38,10 @@ option(BUILD_DOCS "Build FairMQ documentation." OFF)
# Dependencies #################################################################
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
set(THREADS_PREFER_PTHREAD_FLAG TRUE)
find_package(Threads REQUIRED)
if(BUILD_FAIRMQ)
find_package2(PUBLIC Boost VERSION 1.64 REQUIRED
COMPONENTS program_options thread system filesystem regex date_time signals