From: Bruce Richardson Date: Thu, 29 Mar 2018 13:54:32 +0000 (+0100) Subject: examples/l2fwd-cat: make build dependent on pqos lib X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=dd25c80b4f4871a8d995711a4dd61d5f147cd824;p=dpdk.git examples/l2fwd-cat: make build dependent on pqos lib The l2fwd-cat example uses the pqos library to work, so make the meson build dependent on the presence of that library Signed-off-by: Bruce Richardson Tested-by: Harry van Haaren --- diff --git a/examples/l2fwd-cat/meson.build b/examples/l2fwd-cat/meson.build index 29e5d0cf76..d8ef0c99bd 100644 --- a/examples/l2fwd-cat/meson.build +++ b/examples/l2fwd-cat/meson.build @@ -6,7 +6,9 @@ # To build this example as a standalone application with an already-installed # DPDK instance, use 'make' -ext_deps += cc.find_library('pqos') +pqos = cc.find_library('pqos', required: false) +build = pqos.found() +ext_deps += pqos allow_experimental_apis = true cflags += '-D_GNU_SOURCE' cflags += '-I/usr/local/include' # assume pqos lib installed in /usr/local