]> git.sesse.net Git - plocate/blobdiff - meson.build
Fix a wrong IWYU include.
[plocate] / meson.build
index c5622eb209d4c2282f63fcc9e2aaa28a91ad2a38..0c0a53f20bd74fb5879105090f7b90b2c159e3ab 100644 (file)
@@ -7,13 +7,14 @@ cxx = meson.get_compiler('cpp')
 uringdep = dependency('liburing', required: false)
 zstddep = dependency('libzstd')
 threaddep = dependency('threads')
+atomicdep = cxx.find_library('atomic', required: false)
 
 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', 'serializer.cpp', 'access_rx_cache.cpp', 'needle.cpp'],
-       dependencies: [uringdep, zstddep, threaddep],
+       dependencies: [uringdep, zstddep, threaddep, atomicdep],
        install: true,
        install_mode: ['rwxr-sr-x', 'root', 'mlocate'])
 executable('plocate-build', 'plocate-build.cpp',