aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-11-28 10:46:03 +0100
committerDamjan Marion <damarion@cisco.com>2018-11-28 10:46:50 +0100
commit8ebd7929bdfd3ce6e9648abb76b7289056ea5114 (patch)
tree12fc8907c69d90f753c4ad24b91fd10a60cbf586 /src/plugins
parent5a5a86987b1b5bd792e9615c3f26471abd4babb4 (diff)
cmake: display warning and continue if dpdk not present
Change-Id: I5cb2619444507a159c42ac8401800e90b6541a20 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/dpdk/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/dpdk/CMakeLists.txt b/src/plugins/dpdk/CMakeLists.txt
index ed743ea6d9d..f6ccb0358d4 100644
--- a/src/plugins/dpdk/CMakeLists.txt
+++ b/src/plugins/dpdk/CMakeLists.txt
@@ -17,6 +17,11 @@
find_path(DPDK_INCLUDE_DIR PATH_SUFFIXES dpdk NAMES rte_config.h)
find_library(DPDK_LIB NAMES libdpdk.a)
+if (NOT DPDK_INCLUDE_DIR)
+ message(WARNING "-- DPDK not found - dpdk_plugin disabled")
+ return()
+endif()
+
##############################################################################
# Find DPDK Version
##############################################################################