From 512c91a64706ae15bbf8d5fc609b9aaa2af15346 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Wed, 11 Oct 2023 16:35:45 +0200 Subject: [PATCH] meson: don't try to build test_ca without libcap-ng MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Weißschuh --- meson.build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 281bda19e0..aaaddbe51e 100644 --- a/meson.build +++ b/meson.build @@ -377,6 +377,9 @@ conf.set('HAVE_CRYPT_ACTIVATE_BY_SIGNED_KEY', have ? 1 : false) lib_cap_ng = dependency( 'libcap-ng', required : get_option('build-setpriv')) +if not lib_cap_ng.found() + lib_cap_ng = disabler() +endif lib_selinux = dependency( 'libselinux', @@ -3316,7 +3319,9 @@ exe = executable( include_directories : includes, dependencies : [lib_cap_ng], build_by_default: program_tests) -exes += exe +if not is_disabler(exe) + exes += exe +endif exe = executable( 'test_mbsencode', -- 2.47.2