Commit dd40f7f3 authored by gsell's avatar gsell
Browse files

openmpi: set version to 4.0.5, set CC, CXX and FC

parent c01bc33f
......@@ -5,7 +5,7 @@
# https://www.open-mpi.org
#
P=openmpi
V=${OTB_MPI_VERSION:-3.1.6}
V=${OTB_MPI_VERSION:-4.0.5}
trap "otb_exit" EXIT
......@@ -18,6 +18,18 @@ FNAME="$P-$V.tar.gz"
DOWNLOAD_URL="http://www.open-mpi.org/software/ompi/v${V%.*}/downloads/${FNAME}"
SRC_FILE="${OTB_DOWNLOAD_DIR}/${FNAME}"
case ${OTB_TOOLSET} in
gcc )
export CC='gcc'
export CXX='g++'
export FC='gfortran'
;;
clang )
export CC='clang'
export CXX='clang++'
,,
esac
# Download
test -r "${SRC_FILE}" || \
curl -L --output "$_" "${DOWNLOAD_URL}" || exit ${OTB_ERR_DOWNLOAD}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment