From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: [PATCH 2/6] examples/l2fwd-cat: make build dependent on pqos library Date: Thu, 29 Mar 2018 14:54:32 +0100 Message-ID: <20180329135436.92878-3-bruce.richardson@intel.com> References: <20180329135436.92878-1-bruce.richardson@intel.com> Cc: hemant.agrawal@nxp.com, shreyansh.jain@nxp.com, Bruce Richardson To: dev@dpdk.org Return-path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 9711D2BF7 for ; Thu, 29 Mar 2018 15:54:48 +0200 (CEST) In-Reply-To: <20180329135436.92878-1-bruce.richardson@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- examples/l2fwd-cat/meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/l2fwd-cat/meson.build b/examples/l2fwd-cat/meson.build index b6deabc97..1234e7b55 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 cflags += '-D_GNU_SOURCE' cflags += '-I/usr/local/include' # assume pqos lib installed in /usr/local sources = files( -- 2.14.3