diff --git a/cmake/FindPython.cmake b/cmake/FindPython.cmake index 727f88e3..819bfb05 100644 --- a/cmake/FindPython.cmake +++ b/cmake/FindPython.cmake @@ -59,6 +59,9 @@ EXEC_PYTHON_SCRIPT ("import distutils " nulle) # check that distutils is there.. EXEC_PYTHON_SCRIPT ("import numpy" nulle) # check that numpy is there... EXEC_PYTHON_SCRIPT ("import h5py" nulle) # check that h5py is there... EXEC_PYTHON_SCRIPT ("import scipy" nulle) # check that scipy is there... +if (Python_use_mpi4py) +EXEC_PYTHON_SCRIPT ("import mpi4py" nulle) # check that mpi4py is there... +endif() MESSAGE(STATUS "Python interpreter and modules are ok : version ${PYTHON_VERSION}" ) #