Skip to content
Browse files

Open-MPI: Install Fortran `.mod` file to `include`

Fixes #7356.
  • Loading branch information...
1 parent a68e250 commit f858968ba116084079a23d908df08a4aaf003c2f @Sharpie Sharpie committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 Library/Formula/open-mpi.rb
4 Library/Formula/open-mpi.rb
@@ -11,5 +11,9 @@ def install
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
system "make install"
+ # If Fortran bindings were built, there will be a stra `.mod` file (Fortran
+ # header) in `lib` that needs to be moved to `include`.
+ mv lib + 'mpi.mod', include if (lib + 'mpi.mod').exist?

0 comments on commit f858968

Please sign in to comment.
Something went wrong with that request. Please try again.