From 51d45aa665b5fc56e6630e88deb68488b9d90325 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20K=C3=B6cher?= Date: Mon, 29 Sep 2014 11:44:28 +0200 Subject: [PATCH] candi.sh: updated compiler variable not set warning messages --- candi.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/candi.sh b/candi.sh index 4c04aec..e25e12d 100755 --- a/candi.sh +++ b/candi.sh @@ -487,29 +487,30 @@ if [ $# -eq 0 ]; then if [ -n "$CC" ]; then cecho ${WARN} "CC = $(which $CC)" else - cecho ${BAD} "CC variable not set. Please set it with $ export CC = " + cecho ${BAD} "CC variable not set. Please set it with $ export CC = <(MPI) C compiler>" fi if [ -n "$CXX" ]; then cecho ${WARN} "CXX = $(which $CXX)" else - cecho ${BAD} "CXX variable not set. Please set it with $ export CXX = " + cecho ${BAD} "CXX variable not set. Please set it with $ export CXX = <(MPI) C++ compiler>" fi if [ -n "$FC" ]; then cecho ${WARN} "FC = $(which $FC)" else - cecho ${BAD} "FC variable not set. Please set it with $ export FC = " + cecho ${BAD} "FC variable not set. Please set it with $ export FC = <(MPI) Fortran 90 compiler>" fi if [ -n "$FF" ]; then cecho ${WARN} "FF = $(which $FF)" else - cecho ${BAD} "FF variable not set. Please set it with $ export FF = " + cecho ${BAD} "FF variable not set. Please set it with $ export FF = <(MPI) Fortran 77 compiler>" fi if [ -z "$CC" ] || [ -z "$CXX" ] || [ -z "$FC" ] || [ -z "$FF" ]; then - cecho ${BAD} "One or multiple compiler variables (CC,CXX,FC,FF) are not set." + cecho ${WARN} "One or multiple compiler variables (CC,CXX,FC,FF) are not set." + cecho ${BAD} "Usually, mpicc, mpicxx, mpif90 and mpif77 should be the values." cecho ${WARN} "It is strongly recommended to set them to guarantee the same compilers for all dependencies." fi echo "-------------------------------------------------------------------------------" -- 2.39.5