substituted which with command -v.
This commit is contained in:
parent
cefd7e7702
commit
7b2ed3a5e1
6
cmake/Scripts/configure
vendored
6
cmake/Scripts/configure
vendored
@ -453,11 +453,11 @@ for a in "${VARS[@]}"; do
|
|||||||
;;
|
;;
|
||||||
CC=*)
|
CC=*)
|
||||||
# special processing for compiler options
|
# special processing for compiler options
|
||||||
a=`which ${a#CC=}`
|
a=$(command -v ${a#CC=})
|
||||||
c_compiler=" -DCMAKE_C_COMPILER=\"${a/\"/\\\"}\""
|
c_compiler=" -DCMAKE_C_COMPILER=\"${a/\"/\\\"}\""
|
||||||
;;
|
;;
|
||||||
CXX=*)
|
CXX=*)
|
||||||
a=`which ${a#CXX=}`
|
a=$(command -v ${a#CXX=})
|
||||||
cxx_compiler=" -DCMAKE_CXX_COMPILER=\"${a/\"/\\\"}\""
|
cxx_compiler=" -DCMAKE_CXX_COMPILER=\"${a/\"/\\\"}\""
|
||||||
;;
|
;;
|
||||||
CFLAGS=*)
|
CFLAGS=*)
|
||||||
@ -469,7 +469,7 @@ for a in "${VARS[@]}"; do
|
|||||||
cxx_opts=" -DCMAKE_CXX_FLAGS=\"${a/\"/\\\"}\""
|
cxx_opts=" -DCMAKE_CXX_FLAGS=\"${a/\"/\\\"}\""
|
||||||
;;
|
;;
|
||||||
FC=*)
|
FC=*)
|
||||||
a=`which ${a#FC=}`
|
a=$(command -v ${a#FC=})
|
||||||
fort_compiler=" -DCMAKE_Fortran_COMPILER=\"${a/\"/\\\"}\""
|
fort_compiler=" -DCMAKE_Fortran_COMPILER=\"${a/\"/\\\"}\""
|
||||||
;;
|
;;
|
||||||
FFLAGS=*)
|
FFLAGS=*)
|
||||||
|
Loading…
Reference in New Issue
Block a user