aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/common/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/usrp/common/CMakeLists.txt')
-rw-r--r--host/lib/usrp/common/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/host/lib/usrp/common/CMakeLists.txt b/host/lib/usrp/common/CMakeLists.txt
index e4048fdf7..7a6a4fe27 100644
--- a/host/lib/usrp/common/CMakeLists.txt
+++ b/host/lib/usrp/common/CMakeLists.txt
@@ -36,3 +36,11 @@ LIBUHD_APPEND_SOURCES(
${CMAKE_CURRENT_SOURCE_DIR}/io_service_mgr.cpp
${CMAKE_CURRENT_SOURCE_DIR}/io_service_args.cpp
)
+
+if(ENABLE_DPDK)
+ set_property(
+ SOURCE
+ ${CMAKE_CURRENT_SOURCE_DIR}/io_service_mgr.cpp
+ PROPERTY COMPILE_DEFINITIONS HAVE_DPDK
+ )
+endif(ENABLE_DPDK)