linux-cp: check if libmnl headers are present
Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Icb86be8b37fa821f05300ee4415065ca96425fcb
This commit is contained in:

committed by
Damjan Marion

parent
fe85d87235
commit
ffd7a9876e
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user