Require gr-uhd only if uhd is found

This commit is contained in:
Carles Fernandez 2016-02-02 23:54:48 +01:00
parent 1b7bc5af0c
commit 8672508e24
1 changed files with 2 additions and 0 deletions

View File

@ -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)