-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FindPETSc tests fail with missing include <mpi.h> #32
Comments
FindMPI.cmake is an unreliable convoluted mess and even some CMake developers discourage using it. I recommend using CC=/path/to/mpicc.
|
Are you referring to the version prior to the rewrite that came with 3.10 or in general? |
@fsimonis My experience is prior to that merge, but we're currently using |
@jedbrown Fair enough. The error message is misleading though as the tests fail due to the missing include and not a faulty PETSc install. The root of the problem is only visible by inspecting the error logs.
|
Patch welcome.
|
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.
The text was updated successfully, but these errors were encountered: