From 9d03815f56876f16997bc7136029842903ee842b Mon Sep 17 00:00:00 2001 From: Bruce Richardson Date: Tue, 9 Apr 2019 11:55:37 +0100 Subject: [PATCH] distributor: skip building if power library not found The power library is not built on non-Linux systems, so skip the distributor sample if it's not found, as it's a mandatory dependency. Signed-off-by: Bruce Richardson Reviewed-by: David Marchand Acked-by: David Hunt Acked-by: Luca Boccassi --- examples/distributor/meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/distributor/meson.build b/examples/distributor/meson.build index 8cf2ca1dae..26f108d653 100644 --- a/examples/distributor/meson.build +++ b/examples/distributor/meson.build @@ -6,6 +6,9 @@ # To build this example as a standalone application with an already-installed # DPDK instance, use 'make' +# require the power library +build = dpdk_conf.has('RTE_LIBRTE_POWER') + deps += ['distributor', 'power'] sources = files( 'main.c' -- 2.20.1