X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=meson.build;h=0c0a53f20bd74fb5879105090f7b90b2c159e3ab;hb=a9d9d88d7105a9273eac65b520757f86a421eee2;hp=c5622eb209d4c2282f63fcc9e2aaa28a91ad2a38;hpb=3e8b0c34103a4de4190ba270060ef5135ad9d8bc;p=plocate diff --git a/meson.build b/meson.build index c5622eb..0c0a53f 100644 --- a/meson.build +++ b/meson.build @@ -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',