]> git.sesse.net Git - plocate/blobdiff - meson.build
Multithread linear scans.
[plocate] / meson.build
index cbb0cfb6cd65806188dc227bf9dd211109b29443..2e68459c44428315809731dfa00dec92ac9fa5d1 100644 (file)
@@ -6,13 +6,14 @@ add_project_arguments('-DPLOCATE_VERSION="' + meson.project_version() + '"', lan
 cxx = meson.get_compiler('cpp')
 uringdep = dependency('liburing', required: false)
 zstddep = dependency('libzstd')
+threaddep = dependency('threads')
 
 if not uringdep.found()
        add_project_arguments('-DWITHOUT_URING', language: 'cpp')
 endif
 
 executable('plocate', ['plocate.cpp', 'io_uring_engine.cpp', 'turbopfor.cpp', 'parse_trigrams.cpp'],
-       dependencies: [uringdep, zstddep],
+       dependencies: [uringdep, zstddep, threaddep],
        install: true,
        install_mode: ['rwxr-sr-x', 'root', 'mlocate'])
 executable('plocate-build', 'plocate-build.cpp',