From ffd7a9876e5038ad96af1d5dbbb0283c5fe6ab27 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Fri, 28 Jan 2022 17:41:54 -0800 Subject: linux-cp: check if libmnl headers are present Type: improvement Signed-off-by: Florin Coras Change-Id: Icb86be8b37fa821f05300ee4415065ca96425fcb --- src/plugins/linux-cp/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/plugins/linux-cp/CMakeLists.txt') 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) -- cgit 1.2.3-korg