From: michael Date: Fri, 19 Nov 2021 12:36:53 +0000 (+0100) Subject: new mandatory MPI4PY_ROOT_DIR variable when compiling with MPI X-Git-Tag: V9_8_0~35 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e9b44d430b942bcf37577f5ce4661ffa0ee4f17a;p=tools%2Fsolverlab.git new mandatory MPI4PY_ROOT_DIR variable when compiling with MPI --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 806b818..bc97a93 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -78,6 +78,7 @@ endif( DEFINED ENV{MPI_HOME} OR MPI_HOME ) # Definition of MPI4PY_ROOT_DIR if( ${SOLVERLAB_WITH_PYTHON} AND ${SOLVERLAB_WITH_MPI} AND NOT ${MPI4PY_ROOT_DIR}) + message(STATUS "Defining MPI4PY directory" ) if( DEFINED $ENV{MPI4PY_ROOT_DIR}) set(MPI4PY_ROOT_DIR $ENV{MPI4PY_ROOT_DIR}) else( DEFINED $ENV{MPI4PY_ROOT_DIR}) @@ -85,10 +86,10 @@ if( ${SOLVERLAB_WITH_PYTHON} AND ${SOLVERLAB_WITH_MPI} AND NOT ${MPI4PY_ROOT_D endif( DEFINED $ENV{MPI4PY_ROOT_DIR}) endif(${SOLVERLAB_WITH_PYTHON} AND ${SOLVERLAB_WITH_MPI} AND NOT ${MPI4PY_ROOT_DIR}) -if( $MPI4PY_ROOT_DIR) +if( MPI4PY_ROOT_DIR) message(STATUS "MPI4PY directory is ${MPI4PY_ROOT_DIR}" ) SET(CMAKE_SWIG_FLAGS ${CMAKE_SWIG_FLAGS} -DMPI4PY_ROOT_DIR=${MPI4PY_ROOT_DIR}) -endif( $MPI4PY_ROOT_DIR) +endif( MPI4PY_ROOT_DIR) ############################ # Definition of HDF5_ROOT #