From 9450345649f5d502cca89658f674161a5f45a376 Mon Sep 17 00:00:00 2001 From: Alex Williams Date: Tue, 14 Jan 2020 15:35:42 -0800 Subject: cmake: Find DPDK via pkg-config, if available Debian uses pkg-config without the libdpdk.so linker script. Use the pkg-config file to grab the installed libraries and determine what to link to. --- host/lib/usrp/mpmd/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'host/lib/usrp/mpmd') diff --git a/host/lib/usrp/mpmd/CMakeLists.txt b/host/lib/usrp/mpmd/CMakeLists.txt index 1eab1f39b..5a6ce72c1 100644 --- a/host/lib/usrp/mpmd/CMakeLists.txt +++ b/host/lib/usrp/mpmd/CMakeLists.txt @@ -25,11 +25,12 @@ if(ENABLE_MPMD) ) set_property( SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/mpmd_link_if_mgr.cpp - PROPERTY COMPILE_DEFINITIONS HAVE_LIBERIO + PROPERTY COMPILE_DEFINITIONS HAVE_LIBERIO ) endif(ENABLE_LIBERIO) if(ENABLE_DPDK) + include_directories(${DPDK_INCLUDE_DIRS}) set_property( SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/mpmd_link_if_ctrl_udp.cpp -- cgit v1.2.3