aboutsummaryrefslogtreecommitdiffstats
path: root/host/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'host/cmake')
-rw-r--r--host/cmake/Modules/FindDPDK.cmake10
1 files changed, 9 insertions, 1 deletions
diff --git a/host/cmake/Modules/FindDPDK.cmake b/host/cmake/Modules/FindDPDK.cmake
index 4382a8cce..53ecf1112 100644
--- a/host/cmake/Modules/FindDPDK.cmake
+++ b/host/cmake/Modules/FindDPDK.cmake
@@ -14,11 +14,19 @@
include(FindPackageHandleStandardArgs)
-find_path ( DPDK_INCLUDE_DIR rte_config.h
+find_path ( DPDK_INCLUDE_CONFIG_DIR rte_config.h
PATHS ENV RTE_INCLUDE
PATH_SUFFIXES dpdk
)
+find_path ( DPDK_INCLUDE_ETHDEV_DIR rte_ethdev.h
+ PATHS ENV RTE_INCLUDE
+ PATH_SUFFIXES dpdk
+)
+
+set(DPDK_INCLUDE_DIR ${DPDK_INCLUDE_CONFIG_DIR} ${DPDK_INCLUDE_ETHDEV_DIR})
+list(REMOVE_DUPLICATES DPDK_INCLUDE_DIR)
+
find_library(DPDK_LIBRARY
PATHS $ENV{RTE_SDK_DIR}/$ENV{RTE_TARGET}/lib
)