diff options
author | Martin Braun <martin.braun@ettus.com> | 2016-08-10 15:13:14 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2016-08-10 15:13:14 -0700 |
commit | 1051ca97f52631b57889625626e2a5b48724487f (patch) | |
tree | b90c6d511706a474770a1801cc8b23c0c6f429d4 /host/CMakeLists.txt | |
parent | 1686a7baeabc84541e123cbb21e699947109a2d2 (diff) | |
download | uhd-1051ca97f52631b57889625626e2a5b48724487f.tar.gz uhd-1051ca97f52631b57889625626e2a5b48724487f.tar.bz2 uhd-1051ca97f52631b57889625626e2a5b48724487f.zip |
cmake: Conditionally set UHD_RFNOC_FOUND depending on ENABLE_RFNOC
Diffstat (limited to 'host/CMakeLists.txt')
-rw-r--r-- | host/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt index 6660b3bdc..69254bcdc 100644 --- a/host/CMakeLists.txt +++ b/host/CMakeLists.txt @@ -433,6 +433,12 @@ ENDFOREACH(Boost_Comp) IF(ENABLE_USB) LIST(APPEND UHD_LINK_LIST_STATIC "usb-1.0") ENDIF(ENABLE_USB) +# UHDConfig.cmake also needs UHD_RFNOC_FOUND +IF(ENABLE_RFNOC) + SET(UHD_RFNOC_FOUND "TRUE") +ELSE() + SET(UHD_RFNOC_FOUND "FALSE") +ENDIF(ENABLE_RFNOC) CONFIGURE_FILE( ${CMAKE_SOURCE_DIR}/cmake/Modules/UHDConfigVersion.cmake.in |