diff options
author | Florin Coras <fcoras@cisco.com> | 2022-01-28 17:41:54 -0800 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2022-01-30 14:44:11 +0000 |
commit | ffd7a9876e5038ad96af1d5dbbb0283c5fe6ab27 (patch) | |
tree | d1e100147455421049191790a5eb69868c27a9f8 /src/plugins/linux-cp/CMakeLists.txt | |
parent | fe85d872358a7c7874803ac428b2067f66c2a5d8 (diff) |
linux-cp: check if libmnl headers are present
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Icb86be8b37fa821f05300ee4415065ca96425fcb
Diffstat (limited to 'src/plugins/linux-cp/CMakeLists.txt')
-rw-r--r-- | src/plugins/linux-cp/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
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) |