Skip to content

Commit

Permalink
Merge pull request #30 from BenLangmead/fix-pthreads
Browse files Browse the repository at this point in the history
Add pthreads dependency to two targets
  • Loading branch information
ishmeals authored Mar 27, 2024
2 parents ca78400 + d9711e4 commit 651a991
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ nthash = subproject('ntHash')
nthash_dep = nthash.get_variable('lib_dep')
include_dirs = [include_directories('include'), nthash.get_variable('include_dirs')]

thread_dep = dependency('threads')

digest_lib = static_library(
'digest',
include_directories: include_dirs,
Expand Down Expand Up @@ -55,7 +57,7 @@ if get_option('buildtype') != 'release'
executable(
'bench',
'tests/bench/benchmark.cpp',
dependencies : [bench, digest_dep],
dependencies : [bench, digest_dep, thread_dep],
)

### benchmark data structures ###
Expand Down Expand Up @@ -83,7 +85,7 @@ if get_option('buildtype') != 'release'
executable(
'test_thread',
'tests/test/test_thread.cpp',
dependencies : [catch2, digest_dep],
dependencies : [catch2, digest_dep, thread_dep],
)

doxygen = find_program('doxygen', required: false)
Expand Down

0 comments on commit 651a991

Please sign in to comment.