This skips building tests which rely on tirpc when it is not
present.

Signed-off-by: Daniel P. Berrangé <berra...@redhat.com>
---
 scripts/rpcgen/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/rpcgen/meson.build b/scripts/rpcgen/meson.build
index 7fb32c0f91..bce652c7ad 100644
--- a/scripts/rpcgen/meson.build
+++ b/scripts/rpcgen/meson.build
@@ -1,6 +1,6 @@
 subdir('rpcgen')
 
-if tests_enabled[0]
+if tests_enabled[0] and xdr_dep.found()
   subdir('tests')
 
   if pytest_prog.found() and host_machine.system() != 'darwin'
-- 
2.43.0
_______________________________________________
Devel mailing list -- devel@lists.libvirt.org
To unsubscribe send an email to devel-le...@lists.libvirt.org

Reply via email to