mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 00:31:14 +00:00
Link against system threads library
This commit is contained in:
parent
ef3eb5f83e
commit
1e0159b775
|
@ -38,6 +38,10 @@ option(BUILD_DOCS "Build FairMQ documentation." OFF)
|
||||||
|
|
||||||
|
|
||||||
# Dependencies #################################################################
|
# Dependencies #################################################################
|
||||||
|
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
|
||||||
|
set(THREADS_PREFER_PTHREAD_FLAG TRUE)
|
||||||
|
find_package(Threads REQUIRED)
|
||||||
|
|
||||||
if(BUILD_FAIRMQ)
|
if(BUILD_FAIRMQ)
|
||||||
find_package2(PUBLIC Boost VERSION 1.64 REQUIRED
|
find_package2(PUBLIC Boost VERSION 1.64 REQUIRED
|
||||||
COMPONENTS program_options thread system filesystem regex date_time signals
|
COMPONENTS program_options thread system filesystem regex date_time signals
|
||||||
|
|
|
@ -223,7 +223,7 @@ target_link_libraries(FairMQ
|
||||||
INTERFACE # only consumers link against interface dependencies
|
INTERFACE # only consumers link against interface dependencies
|
||||||
|
|
||||||
PUBLIC # libFairMQ AND consumers of libFairMQ link aginst public dependencies
|
PUBLIC # libFairMQ AND consumers of libFairMQ link aginst public dependencies
|
||||||
pthread
|
Threads::Threads
|
||||||
dl
|
dl
|
||||||
Boost::boost
|
Boost::boost
|
||||||
Boost::program_options
|
Boost::program_options
|
||||||
|
|
Loading…
Reference in New Issue
Block a user