FindPETSc does not respect MPI include paths and therefore fails to compile the tests on systems with scoped mpi installs such as OpenMPI on Ubuntu 16.04 (/usr/include/openmpi/mpi.h)
It should include MPI_INCLUDE_DIRS, or similar here.
|
set (petsc_includes_minimal ${PETSC_INCLUDE_CONF} ${PETSC_INCLUDE_DIR}) |
A possible solution is to adapt FindPETSc to call FindMPI internally.
FindPETSc does not respect MPI include paths and therefore fails to compile the tests on systems with scoped mpi installs such as OpenMPI on Ubuntu 16.04 (
/usr/include/openmpi/mpi.h)It should include
MPI_INCLUDE_DIRS, or similar here.cmake-modules/FindPETSc.cmake
Line 292 in 91f9617
A possible solution is to adapt FindPETSc to call FindMPI internally.