From 8672508e2486432351a356034498dd89ad9602f4 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Tue, 2 Feb 2016 23:54:48 +0100 Subject: [PATCH] Require gr-uhd only if uhd is found --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 763220c34..aaabf7aa8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -831,6 +831,8 @@ if(NOT UHD_FOUND) message(STATUS " so all USRP-based front-ends will not be usable.") message(STATUS " Please check http://files.ettus.com/manual/") else(NOT UHD_FOUND) + set(GR_REQUIRED_COMPONENTS UHD) + find_package(Gnuradio) set(ENABLE_UHD ON) endif(NOT UHD_FOUND)