diff options
author | Josh Blum | 2012-05-02 22:00:45 -0700 |
---|---|---|
committer | Josh Blum | 2012-05-02 22:00:45 -0700 |
commit | 29ed15d3acaf8c778ea6aff41a636892e362f7a3 (patch) | |
tree | 1d252f3b68976f956a92e11f2f296978b61c3cb3 /gruel/src | |
parent | 9bab2daba836ad6c121b5237af287efb7dc5968e (diff) | |
download | gnuradio-29ed15d3acaf8c778ea6aff41a636892e362f7a3.tar.gz gnuradio-29ed15d3acaf8c778ea6aff41a636892e362f7a3.tar.bz2 gnuradio-29ed15d3acaf8c778ea6aff41a636892e362f7a3.zip |
gruel: conditional linking for pthread
Diffstat (limited to 'gruel/src')
-rw-r--r-- | gruel/src/lib/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gruel/src/lib/CMakeLists.txt b/gruel/src/lib/CMakeLists.txt index 2a96163ce..e7713536c 100644 --- a/gruel/src/lib/CMakeLists.txt +++ b/gruel/src/lib/CMakeLists.txt @@ -80,8 +80,14 @@ list(APPEND gruel_sources thread_group.cc ) +list(APPEND gruel_libs ${Boost_LIBRARIES}) + +if(HAVE_PTHREAD_SETSCHEDPARAM) + list(APPEND gruel_libs pthread) +endif() + add_library(gruel SHARED ${gruel_sources}) -target_link_libraries(gruel ${Boost_LIBRARIES} -lpthread) +target_link_libraries(gruel ${gruel_libs}) GR_LIBRARY_FOO(gruel RUNTIME_COMPONENT "gruel_runtime" DEVEL_COMPONENT "gruel_devel") ######################################################################## |