mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-03-20 18:37:01 +00:00
Check if GNU Radio version is at least 3.7.3
This commit is contained in:
parent
9b95919ddb
commit
ff5a1ac813
@ -312,19 +312,26 @@ endif(NOT Boost_FOUND)
|
||||
################################################################################
|
||||
# GNU Radio - http://gnuradio.org/redmine/projects/gnuradio/wiki
|
||||
################################################################################
|
||||
set(GR_REQUIRED_COMPONENTS RUNTIME ANALOG BLOCKS DIGITAL FFT FILTER PMT FEC TRELLIS)
|
||||
find_package(Gnuradio)
|
||||
if(PC_GNURADIO_RUNTIME_VERSION)
|
||||
if(PC_GNURADIO_RUNTIME_VERSION VERSION_LESS 3.7.3)
|
||||
set(GNURADIO_RUNTIME_FOUND)
|
||||
message(STATUS "The GNU Radio version installed in your system is too old.")
|
||||
endif(PC_GNURADIO_RUNTIME_VERSION VERSION_LESS 3.7.3)
|
||||
endif(PC_GNURADIO_RUNTIME_VERSION)
|
||||
if(NOT GNURADIO_RUNTIME_FOUND)
|
||||
message(STATUS "CMake cannot find GNU Radio >= 3.7")
|
||||
message(STATUS "CMake cannot find GNU Radio >= 3.7.3")
|
||||
if(OS_IS_LINUX)
|
||||
message("Go to http://gnuradio.org/redmine/projects/pybombs/wiki")
|
||||
message("and follow the instructions to install GNU Radio in your system.")
|
||||
message(FATAL_ERROR "GNU Radio 3.7 or later is required to build gnss-sdr")
|
||||
message(FATAL_ERROR "GNU Radio 3.7.3 or later is required to build gnss-sdr")
|
||||
endif(OS_IS_LINUX)
|
||||
if(OS_IS_MACOSX)
|
||||
message("You can install it easily via Macports.")
|
||||
message("Open a terminal and type:")
|
||||
message("sudo port install gnuradio ")
|
||||
message(FATAL_ERROR "GNU Radio 3.7 or later is required to build gnss-sdr")
|
||||
message(FATAL_ERROR "GNU Radio 3.7.3 or later is required to build gnss-sdr")
|
||||
endif(OS_IS_MACOSX)
|
||||
endif(NOT GNURADIO_RUNTIME_FOUND)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user