X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fl2fwd-cat%2Fmeson.build;h=68554e76ce7b2709d2f036fa778639e2eaf149cc;hb=e7a7add13a0cd2eb64f62502cad005a97d8e3ee2;hp=29e5d0cf76a016fedfe38c2b714b0c0e7fbfdd14;hpb=8728ccf37615904cf23fb8763895b05c9a3c6b0c;p=dpdk.git diff --git a/examples/l2fwd-cat/meson.build b/examples/l2fwd-cat/meson.build index 29e5d0cf76..68554e76ce 100644 --- a/examples/l2fwd-cat/meson.build +++ b/examples/l2fwd-cat/meson.build @@ -6,10 +6,16 @@ # 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() +if not build + subdir_done() +endif + +ext_deps += pqos allow_experimental_apis = true -cflags += '-D_GNU_SOURCE' cflags += '-I/usr/local/include' # assume pqos lib installed in /usr/local sources = files( - 'cat.c', 'l2fwd-cat.c' + 'cat.c', + 'l2fwd-cat.c', )