From: Nicolas OTTON Date: Thu, 20 Jan 2022 16:00:54 +0000 (+0100) Subject: added MPI_ROOT_DIR in solverlab compil script X-Git-Tag: V9_9_0~213 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f7e515e5303dc14ca6e4e3b272a09eb56f09fe6b;p=tools%2Fsat_salome.git added MPI_ROOT_DIR in solverlab compil script --- diff --git a/products/compil_scripts/SOLVERLAB.sh b/products/compil_scripts/SOLVERLAB.sh index 9231ec0..baab925 100755 --- a/products/compil_scripts/SOLVERLAB.sh +++ b/products/compil_scripts/SOLVERLAB.sh @@ -35,13 +35,15 @@ then if [ $VERSION == "V9_6_0" ] then # following variable is automatically detected in environment after 9.6.0 - CMAKE_OPTIONS="${CMAKE_OPTIONS} -DMPI_HOME=${MPI_ROOT_DIR}" + CMAKE_OPTIONS+=" -DMPI_HOME=${MPI_ROOT_DIR}" fi - CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCMAKE_CXX_COMPILER:STRING=${MPI_ROOT_DIR}/bin/mpic++" - CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCMAKE_C_COMPILER:STRING=${MPI_ROOT_DIR}/bin/mpicc" + CMAKE_OPTIONS+=" -DMPI_ROOT_DIR=${MPI_ROOT_DIR}" + CMAKE_OPTIONS+=" -DCMAKE_CXX_COMPILER:STRING=${MPI_ROOT_DIR}/bin/mpic++" + CMAKE_OPTIONS+=" -DCMAKE_C_COMPILER:STRING=${MPI_ROOT_DIR}/bin/mpicc" + CMAKE_OPTIONS+=" -DSOLVERLAB_WITH_MPI=ON" if [ -n "$MPI4PY_ROOT_DIR" ] then - CMAKE_OPTIONS="${CMAKE_OPTIONS} -DMPI4PY_ROOT_DIR:PATH=${MPI4PY_ROOT_DIR}" + CMAKE_OPTIONS+=" -DMPI4PY_ROOT_DIR:PATH=${MPI4PY_ROOT_DIR}" else echo "WARNING: mpi4py environment variable not detected" fi