[hamradio-commits] [gnss-sdr] 12/20: Update Armadillo version
Carles Fernandez
carles_fernandez-guest at moszumanska.debian.org
Thu Jun 30 20:08:59 UTC 2016
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 89933bb68f2cdc8640b17cb2980512154c861548
Author: Carles Fernandez <carles.fernandez at gmail.com>
Date: Wed May 25 21:17:43 2016 +0200
Update Armadillo version
Starting with 7.100.3, Armadillo is delivered as a .xz file instead of a
.gz. It happens that CMake > 3.1 cannot open .xz files. If CMake is less
than 3.1, it will download the last version of Armadillo that was
delivered as .gz (6.700.7). If CMake is newer than that, it will
download the latest Armadillo version (delivered as .xz, at this moment
7.100.3).
---
CMakeLists.txt | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 02671d9..94de6fb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -735,13 +735,21 @@ if(NOT ARMADILLO_FOUND)
message(STATUS " Armadillo will be downloaded and built automatically ")
message(STATUS " when doing 'make'. ")
- set(armadillo_RELEASE 6.600.5)
- set(armadillo_MD5 "649a6d0ed528c2e39c1102b43710103f")
+ if(CMAKE_VERSION VERSION_LESS 3.1)
+ # ExternalProject in CMake > 3.1 cannot open .xz files
+ set(armadillo_RELEASE 6.700.7)
+ set(armadillo_MD5 "8116185e1d7391eed3bf6c500f81b4d8")
+ set(ARMA_FILE_EXTENSION "gz")
+ else(CMAKE_VERSION VERSION_LESS 3.1)
+ set(armadillo_RELEASE 7.100.3)
+ set(armadillo_MD5 "d047c1c24f4031e0e9374a7104e33ec0")
+ set(ARMA_FILE_EXTENSION "xz")
+ endif(CMAKE_VERSION VERSION_LESS 3.1)
ExternalProject_Add(
armadillo-${armadillo_RELEASE}
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/armadillo-${armadillo_RELEASE}
- URL http://sourceforge.net/projects/arma/files/armadillo-${armadillo_RELEASE}.tar.gz
+ URL http://sourceforge.net/projects/arma/files/armadillo-${armadillo_RELEASE}.tar.${ARMA_FILE_EXTENSION}
DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR}/download/armadillo-${armadillo_RELEASE}
URL_MD5 ${armadillo_MD5}
CMAKE_ARGS -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} -DBUILD_SHARED_LIBS=OFF
--
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