[hamradio-commits] [gnss-sdr] 57/60: Remove gfortran from the list of required dependencies, but still used if present
Carles Fernandez
carles_fernandez-guest at moszumanska.debian.org
Sun Mar 22 11:15:45 UTC 2015
This is an automated email from the git hooks/post-receive script.
carles_fernandez-guest pushed a commit to branch next
in repository gnss-sdr.
commit a4343c3b6b94720eee9d7beca75cfb4e38d5779f
Author: Carles Fernandez <carles.fernandez at gmail.com>
Date: Sun Mar 22 11:33:28 2015 +0100
Remove gfortran from the list of required dependencies, but still used
if present
---
CMakeLists.txt | 22 ++++++++++++----------
README.md | 2 +-
2 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2a5d54e..1462e69 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -668,7 +668,7 @@ if(OS_IS_LINUX)
message(FATAL_ERROR "BLAS is required to build gnss-sdr")
endif(NOT BLAS)
#############################################
- # Check that GFORTRAN is found in the system
+ # Check if GFORTRAN is found in the system
#############################################
find_library(GFORTRAN NAMES gfortran
PATHS /usr/lib
@@ -719,24 +719,23 @@ if(OS_IS_LINUX)
/usr/lib/gcc/arm-linux-gnueabi/4.9
)
if(NOT GFORTRAN)
- message(" The gfortran library has not been found.")
- message(" You can try to install it by typing:")
+ message(STATUS "The gfortran library has not been found.")
+ message(STATUS " You can try to install it by typing:")
if(${LINUX_DISTRIBUTION} MATCHES "Fedora" OR ${LINUX_DISTRIBUTION} MATCHES "Red Hat")
- message(" sudo yum install gcc-fortran")
+ message(STATUS" sudo yum install gcc-fortran")
elseif(${LINUX_DISTRIBUTION} MATCHES "openSUSE")
- message(" sudo zypper install gcc-fortran")
+ message(STATUS" sudo zypper install gcc-fortran")
else(${LINUX_DISTRIBUTION} MATCHES "Fedora" OR ${LINUX_DISTRIBUTION} MATCHES "Red Hat")
- message(" sudo apt-get install gfortran")
+ message(STATUS" sudo apt-get install gfortran")
endif(${LINUX_DISTRIBUTION} MATCHES "Fedora" OR ${LINUX_DISTRIBUTION} MATCHES "Red Hat")
- #message(FATAL_ERROR "gfortran is required to build gnss-sdr")
endif(NOT GFORTRAN)
endif(OS_IS_LINUX)
find_package(Armadillo)
if(NOT ARMADILLO_FOUND)
- message (STATUS " Armadillo has not been found.")
- message (STATUS " Armadillo will be downloaded and built automatically ")
- message (STATUS " when doing 'make'. ")
+ message(STATUS " Armadillo has not been found.")
+ message(STATUS " Armadillo will be downloaded and built automatically ")
+ message(STATUS " when doing 'make'. ")
set(armadillo_RELEASE 4.650.4)
set(armadillo_MD5 "e575dc01cf60e290a467c7c6d3171ef3")
@@ -765,6 +764,9 @@ if(NOT ARMADILLO_FOUND)
if(OPENBLAS_FOUND)
set(BLAS ${OPENBLAS})
endif(OPENBLAS_FOUND)
+ if(NOT GFORTRAN)
+ set(GFORTRAN "")
+ endif(NOT GFORTRAN)
set(ARMADILLO_LIBRARIES ${BLAS} ${LAPACK} ${GFORTRAN} ${binary_dir}/${CMAKE_FIND_LIBRARY_PREFIXES}armadillo.a)
set(LOCAL_ARMADILLO true CACHE STRING "Armadillo downloaded and built automatically" FORCE)
# Save a copy at the thirdparty folder
diff --git a/README.md b/README.md
index ca3488a..039e590 100644
--- a/README.md
+++ b/README.md
@@ -33,7 +33,7 @@ Before building GNSS-SDR, you need to install all the required dependencies. If
$ sudo apt-get install build-essential cmake git libboost-dev libboost-date-time-dev \
libboost-system-dev libboost-filesystem-dev libboost-thread-dev libboost-chrono-dev \
libboost-serialization-dev libboost-program-options-dev libboost-test-dev \
- liblog4cpp5-dev libuhd-dev gnuradio-dev gr-osmosdr libblas-dev liblapack-dev gfortran \
+ liblog4cpp5-dev libuhd-dev gnuradio-dev gr-osmosdr libblas-dev liblapack-dev \
libarmadillo-dev libgflags-dev libgoogle-glog-dev libssl-dev libgtest-dev
~~~~~~
--
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