aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorAaron Rossetto <aaron.rossetto@ni.com>2021-06-15 08:27:25 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2021-06-15 10:28:49 -0500
commit752774dc700bac6b2d2f4a6db53269b15b82b195 (patch)
tree468fcd21a4ae6fd78fb42aa308c9387dfb41c0d5 /host/lib
parent4487c60c999da6eb84ee993bbeccbf96fee360e0 (diff)
downloaduhd-752774dc700bac6b2d2f4a6db53269b15b82b195.tar.gz
uhd-752774dc700bac6b2d2f4a6db53269b15b82b195.tar.bz2
uhd-752774dc700bac6b2d2f4a6db53269b15b82b195.zip
uhd: x400: Honor ENABLE_X400 component flag
Don't add X400-related sources to libuhd if they are not requested.
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/usrp/x400/CMakeLists.txt23
1 files changed, 14 insertions, 9 deletions
diff --git a/host/lib/usrp/x400/CMakeLists.txt b/host/lib/usrp/x400/CMakeLists.txt
index b3efe3b60..3586d3a35 100644
--- a/host/lib/usrp/x400/CMakeLists.txt
+++ b/host/lib/usrp/x400/CMakeLists.txt
@@ -8,13 +8,18 @@
# This file included, use CMake directory variables
########################################################################
-LIBUHD_APPEND_SOURCES(
- ${CMAKE_CURRENT_SOURCE_DIR}/adc_self_calibration.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/x400_radio_control.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/x400_rfdc_control.cpp
-)
+########################################################################
+# Conditionally configure the X400 support
+########################################################################
+if(ENABLE_X400)
+ LIBUHD_APPEND_SOURCES(
+ ${CMAKE_CURRENT_SOURCE_DIR}/adc_self_calibration.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/x400_radio_control.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/x400_rfdc_control.cpp
+ )
-if(ENABLE_DPDK)
- include_directories(${DPDK_INCLUDE_DIRS})
- add_definitions(-DHAVE_DPDK)
-endif(ENABLE_DPDK)
+ if(ENABLE_DPDK)
+ include_directories(${DPDK_INCLUDE_DIRS})
+ add_definitions(-DHAVE_DPDK)
+ endif(ENABLE_DPDK)
+endif(ENABLE_X400)