From 54bb964a89a3a7f65d73c11ee05076080650126b Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sat, 17 Dec 2016 18:54:52 +0100 Subject: [PATCH] Make BLAS and LAPACK not mandatory on ARM devices --- CMakeLists.txt | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 12b09d154..499bf6596 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -701,7 +701,12 @@ if(OS_IS_LINUX) else(${LINUX_DISTRIBUTION} MATCHES "Fedora" OR ${LINUX_DISTRIBUTION} MATCHES "Red Hat") message(" sudo apt-get install liblapack-dev") endif(${LINUX_DISTRIBUTION} MATCHES "Fedora" OR ${LINUX_DISTRIBUTION} MATCHES "Red Hat") - message(FATAL_ERROR "LAPACK is required to build gnss-sdr") + if(IS_ARM) + message(WARNING "LAPACK is recommended to build gnss-sdr") + set(LAPACK "") + else(IS_ARM) + message(FATAL_ERROR "LAPACK is required to build gnss-sdr") + endif(IS_ARM) endif(NOT LAPACK) ############################################################################# # Check that BLAS is found in the system @@ -717,7 +722,12 @@ if(OS_IS_LINUX) else(${LINUX_DISTRIBUTION} MATCHES "Fedora" OR ${LINUX_DISTRIBUTION} MATCHES "Red Hat") message(" sudo apt-get install libopenblas-dev") endif(${LINUX_DISTRIBUTION} MATCHES "Fedora" OR ${LINUX_DISTRIBUTION} MATCHES "Red Hat") - message(FATAL_ERROR "BLAS is required to build gnss-sdr") + if(IS_ARM) + message(WARNING "BLAS is recommended to build gnss-sdr") + set(BLAS "") + else(IS_ARM) + message(FATAL_ERROR "BLAS is required to build gnss-sdr") + endif(IS_ARM) endif(NOT BLAS) ############################################# # Check if GFORTRAN is found in the system