linux-cp: check if libmnl headers are present 44/35144/5
authorFlorin Coras <fcoras@cisco.com>
Sat, 29 Jan 2022 01:41:54 +0000 (17:41 -0800)
committerDamjan Marion <dmarion@me.com>
Sun, 30 Jan 2022 14:44:11 +0000 (14:44 +0000)
Type: improvement

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Icb86be8b37fa821f05300ee4415065ca96425fcb

src/plugins/linux-cp/CMakeLists.txt

index a30ece8..3a61bbb 100644 (file)
 # 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)