From 7b2ed3a5e1bfedce3003b0572d318780bcb25a95 Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Thu, 5 Sep 2013 12:42:40 +0200 Subject: [PATCH] substituted which with command -v. --- cmake/Scripts/configure | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/Scripts/configure b/cmake/Scripts/configure index d04580c9..c0ef819a 100755 --- a/cmake/Scripts/configure +++ b/cmake/Scripts/configure @@ -453,11 +453,11 @@ for a in "${VARS[@]}"; do ;; CC=*) # special processing for compiler options - a=`which ${a#CC=}` + a=$(command -v ${a#CC=}) c_compiler=" -DCMAKE_C_COMPILER=\"${a/\"/\\\"}\"" ;; CXX=*) - a=`which ${a#CXX=}` + a=$(command -v ${a#CXX=}) cxx_compiler=" -DCMAKE_CXX_COMPILER=\"${a/\"/\\\"}\"" ;; CFLAGS=*) @@ -469,7 +469,7 @@ for a in "${VARS[@]}"; do cxx_opts=" -DCMAKE_CXX_FLAGS=\"${a/\"/\\\"}\"" ;; FC=*) - a=`which ${a#FC=}` + a=$(command -v ${a#FC=}) fort_compiler=" -DCMAKE_Fortran_COMPILER=\"${a/\"/\\\"}\"" ;; FFLAGS=*)