]> git.sesse.net Git - plocate/blobdiff - meson.build
Unbreak compilation of bench.
[plocate] / meson.build
index 6f3e0e0bb61d0b8304926e70fa71792155f84ba5..ba12c7b35b51a43061ae281a01fd5449d6fd806e 100644 (file)
@@ -1,4 +1,4 @@
-project('plocate', 'cpp', default_options: ['buildtype=debugoptimized','cpp_std=c++17'], version: '1.0.2-pre')
+project('plocate', 'cpp', default_options: ['buildtype=debugoptimized','cpp_std=c++17'], version: '1.0.3-pre')
 
 # Make the version available as a #define.
 add_project_arguments('-DPLOCATE_VERSION="' + meson.project_version() + '"', language: 'cpp')
@@ -22,11 +22,11 @@ executable('plocate-build', 'plocate-build.cpp',
 
 conf_data = configuration_data()
 conf_data.set('sbindir', get_option('prefix') + '/' + get_option('sbindir'))
-configure_file(input: 'update-plocate.sh',
+update_script = configure_file(input: 'update-plocate.sh',
                output: 'update-plocate.sh',
                configuration: conf_data)
 
-install_data('update-plocate.sh',
+install_data(update_script,
        install_dir: '/etc/cron.daily',
        rename: 'plocate')
 install_man('plocate.1')
@@ -41,7 +41,7 @@ if run_command('[', '-r', pfordir + '/libic.a', ']').returncode() == 0
        turbopfordep = declare_dependency(
                include_directories: include_directories('TurboPFor-Integer-Compression'),
                dependencies: meson.get_compiler('cpp').find_library('ic', dirs: pfordir))
-       executable('bench', ['bench.cpp', 'io_uring_engine.cpp'],
+       executable('bench', ['bench.cpp', 'io_uring_engine.cpp', 'turbopfor.cpp'],
                dependencies: [uringdep, turbopfordep],
                build_by_default: false,
                install: false)