~emersion/basu

c39b85b2ed47be646ff14bd5bc98d3031a3d656e — Arsen Arsenović 1 year, 10 months ago 3447114
meson: add libcap option

it's better to provide the user with this choice instead of
unconditionally magically depending on it
2 files changed, 4 insertions(+), 1 deletions(-)

M meson.build
M meson_options.txt
M meson.build => meson.build +1 -1
@@ 231,7 231,7 @@ threads = dependency('threads')
librt = cc.find_library('rt')
libm = cc.find_library('m')

libcap = dependency('libcap', required: false)
libcap = dependency('libcap', required: get_option('libcap'))
have_libcap = libcap.found()
conf.set10('HAVE_LIBCAP', have_libcap)


M meson_options.txt => meson_options.txt +3 -0
@@ 14,3 14,6 @@ option('system-bus-address', type : 'string',

option('audit', type : 'combo', choices : ['auto', 'true', 'false'],
       description : 'libaudit support')

option('libcap', type : 'feature',
       description : 'libcap support')