From: Florin Coras Date: Sat, 29 Jan 2022 01:41:54 +0000 (-0800) Subject: linux-cp: check if libmnl headers are present X-Git-Tag: v22.10-rc0~445 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F44%2F35144%2F5;p=vpp.git linux-cp: check if libmnl headers are present Type: improvement Signed-off-by: Florin Coras Change-Id: Icb86be8b37fa821f05300ee4415065ca96425fcb --- diff --git a/src/plugins/linux-cp/CMakeLists.txt b/src/plugins/linux-cp/CMakeLists.txt index a30ece80501..3a61bbb0afd 100644 --- a/src/plugins/linux-cp/CMakeLists.txt +++ b/src/plugins/linux-cp/CMakeLists.txt @@ -12,12 +12,18 @@ # limitations under the License. vpp_find_path(LIBNL3_INCLUDE_DIR NAMES libnl3/netlink/route/link/vlan.h) +vpp_find_path(LIBMNL_INCLUDE_DIR NAMES libmnl/libmnl.h) if (NOT LIBNL3_INCLUDE_DIR) message(WARNING "-- libnl3 headers not found - linux-cp plugin disabled") return() endif() +if (NOT LIBMNL_INCLUDE_DIR) + message(WARNING "-- libmnl headers not found - linux-cp plugin disabled") + return() +endif() + vpp_plugin_find_library(linux-cp LIBNL3_LIB libnl-3.so) vpp_plugin_find_library(linux-cp LIBNL3_ROUTE_LIB libnl-route-3.so.200)