Commit dce9d68b authored by gsell's avatar gsell

add OTB_MPI to config file only if defined

parent a99ba125
......@@ -182,7 +182,8 @@ if [[ ${__my_dir} != */etc/profile.d ]]; then
echo "OTB_TOOLSET=${OTB_TOOLSET}"
[[ -n ${OTB_COMPILER_VERSION} ]] && \
echo "OTB_COMPILER_VERSION=${OTB_COMPILER_VERSION}"
echo "OTB_MPI=${OTB_MPI}"
[[ -n ${OTB_MPI} ]] && \
echo "OTB_MPI=${OTB_MPI}"
[[ -n ${OTB_MPI_VERSION} ]] && \
echo "OTB_MPI_VERSION=${OTB_MPI_VERSION}"
} > "${OTB_PROFILE_DIR}/config.sh"
......@@ -193,7 +194,8 @@ echo " Prefix: ${OTB_PREFIX}"
echo " Compiler: ${OTB_TOOLSET}"
[[ -n ${OTB_COMPILER_VERSION} ]] && \
echo " Version: ${OTB_COMPILER_VERSION}"
echo " MPI: ${OTB_MPI}"
[[ -n ${OTB_MPI} ]] && \
echo " MPI: ${OTB_MPI}"
[[ -n ${OTB_MPI_VERSION} ]] && \
echo " Version: ${OTB_MPI_VERSION}"
......
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