[hamradio-commits] [gnss-sdr] 04/27: Check if GNU Radio version is at least 3.7.3
Carles Fernandez
carles_fernandez-guest at moszumanska.debian.org
Wed Jan 14 09:07:40 UTC 2015
This is an automated email from the git hooks/post-receive script.
carles_fernandez-guest pushed a commit to branch master
in repository gnss-sdr.
commit ff5a1ac81358d592cf2ff13c908cd2786eb59c98
Author: Carles Fernandez <carles.fernandez at gmail.com>
Date: Tue Dec 23 18:54:09 2014 +0100
Check if GNU Radio version is at least 3.7.3
---
CMakeLists.txt | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a4ff3cd..beed813 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/gnss-sdr.git
More information about the pkg-hamradio-commits
mailing list