summaryrefslogtreecommitdiff
path: root/examples/l2fwd-cat
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2018-03-29 14:54:32 +0100
committerBruce Richardson <bruce.richardson@intel.com>2018-04-17 16:09:43 +0200
commitdd25c80b4f4871a8d995711a4dd61d5f147cd824 (patch)
treef5e270b65585fc00dfa230dd723e6c71914ea153 /examples/l2fwd-cat
parente89335c0f880b7631c565d283cb5c565b3146383 (diff)
downloaddpdk-dd25c80b4f4871a8d995711a4dd61d5f147cd824.zip
dpdk-dd25c80b4f4871a8d995711a4dd61d5f147cd824.tar.gz
dpdk-dd25c80b4f4871a8d995711a4dd61d5f147cd824.tar.xz
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 <bruce.richardson@intel.com> Tested-by: Harry van Haaren <harry.van.haaren@intel.com>
Diffstat (limited to 'examples/l2fwd-cat')
-rw-r--r--examples/l2fwd-cat/meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/l2fwd-cat/meson.build b/examples/l2fwd-cat/meson.build
index 29e5d0c..d8ef0c9 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