aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests
diff options
context:
space:
mode:
authorAlex Williams <alex.williams@ni.com>2020-01-14 15:35:42 -0800
committerMartin Braun <martin.braun@ettus.com>2020-01-22 12:52:35 -0800
commit9450345649f5d502cca89658f674161a5f45a376 (patch)
tree88ef8e60e7b8113011436e8ae01e8c5caa188dc0 /host/tests
parenta09dad7fc6da3fe0c8b6e64b6187bb8b15191ccf (diff)
downloaduhd-9450345649f5d502cca89658f674161a5f45a376.tar.gz
uhd-9450345649f5d502cca89658f674161a5f45a376.tar.bz2
uhd-9450345649f5d502cca89658f674161a5f45a376.zip
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.
Diffstat (limited to 'host/tests')
-rw-r--r--host/tests/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/tests/CMakeLists.txt b/host/tests/CMakeLists.txt
index d25c88400..017778fb8 100644
--- a/host/tests/CMakeLists.txt
+++ b/host/tests/CMakeLists.txt
@@ -129,7 +129,7 @@ if(ENABLE_DPDK)
${CMAKE_SOURCE_DIR}/lib/transport/uhd-dpdk/dpdk_io_service.cpp
${CMAKE_SOURCE_DIR}/lib/transport/udp_dpdk_link.cpp
INCLUDE_DIRS
- ${DPDK_INCLUDE_DIR}
+ ${DPDK_INCLUDE_DIRS}
EXTRA_LIBS ${DPDK_LIBRARIES}
NOAUTORUN # Don't register for auto-run, it requires special config
)
@@ -145,7 +145,7 @@ if(ENABLE_DPDK)
${CMAKE_SOURCE_DIR}/lib/transport/uhd-dpdk/dpdk_io_service.cpp
${CMAKE_SOURCE_DIR}/lib/transport/udp_dpdk_link.cpp
INCLUDE_DIRS
- ${DPDK_INCLUDE_DIR}
+ ${DPDK_INCLUDE_DIRS}
EXTRA_LIBS ${DPDK_LIBRARIES}
NOAUTORUN # Don't register for auto-run, it requires special config
)