X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fl2fwd-cat%2Fmeson.build;h=68554e76ce7b2709d2f036fa778639e2eaf149cc;hb=23f7ec1d9b7ccfcfb9b9f67d33cf6cbf7f5034d3;hp=b6deabc9765607f621e48461e8ed4b7f6b1a5874;hpb=6c9457c27954f16d99f3798711eb253fbaf05fa3;p=dpdk.git diff --git a/examples/l2fwd-cat/meson.build b/examples/l2fwd-cat/meson.build index b6deabc976..68554e76ce 100644 --- a/examples/l2fwd-cat/meson.build +++ b/examples/l2fwd-cat/meson.build @@ -6,9 +6,16 @@ # To build this example as a standalone application with an already-installed # DPDK instance, use 'make' -ext_deps += cc.find_library('pqos') -cflags += '-D_GNU_SOURCE' +pqos = cc.find_library('pqos', required: false) +build = pqos.found() +if not build + subdir_done() +endif + +ext_deps += pqos +allow_experimental_apis = true cflags += '-I/usr/local/include' # assume pqos lib installed in /usr/local sources = files( - 'cat.c', 'l2fwd-cat.c' + 'cat.c', + 'l2fwd-cat.c', )