summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRobert Shearman <robertshearman@gmail.com>2021-02-26 11:16:33 +0000
committerDamjan Marion <dmarion@me.com>2021-03-04 10:56:18 +0000
commitb4704f2570fb2484b3085c8d25d0c850cc3fc77f (patch)
tree3195d498e596a3e5a63d0b41a53d81c03d7fd6b8 /src
parent4d9f9a6b6b1ab23af3e3d594633b3fb49ea0ad3c (diff)
dpdk: fix include directories with system dpdk
Add the DPDK_INCLUDE_DIRS variable which is set by pkg_check_modules to the include directories to allow use of system DPDK where the headers aren't under standard include directories. Type: fix Fixes: f15a5791ba870a98a2ab7dec101bbbb9b6e266c1 Change-Id: Ifd4b4170572911b6e0580cdf114ad87cfa771931 Signed-off-by: Robert Shearman <robertshearman@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/dpdk/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/dpdk/CMakeLists.txt b/src/plugins/dpdk/CMakeLists.txt
index 6ec48578852..b9633814867 100644
--- a/src/plugins/dpdk/CMakeLists.txt
+++ b/src/plugins/dpdk/CMakeLists.txt
@@ -20,6 +20,7 @@ if(VPP_USE_SYSTEM_DPDK)
pkg_check_modules(DPDK REQUIRED libdpdk)
message(WARNING "-- linking dpdk plugin against system libdpdk, version ${DPDK_VERSION}")
set(DPDK_LINK_FLAGS ${DPDK_LDFLAGS})
+ include_directories (${DPDK_INCLUDE_DIRS})
else()
##############################################################################
# Find lib and include files