Skip to content

Commit ae8a549

Browse files
committed
mpiext/*/use-mpi-f08: include location of mpi module
Since mpi_f08 now references the mpi module, we need to provide the compiler flag to find the mpi module in the build tree. Signed-off-by: Jeff Squyres <[email protected]>
1 parent 7107511 commit ae8a549

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ompi/mpiext/example/use-mpi-f08/Makefile.am

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ AM_CPPFLAGS =
2121

2222
# We must set these #defines and include paths so that the inner OMPI
2323
# MPI prototype header files do the Right Thing.
24-
AM_FCFLAGS = $(OMPI_FC_MODULE_FLAG)$(top_builddir)/ompi/mpi/fortran/use-mpi-f08/mod \
24+
AM_FCFLAGS = \
25+
$(OMPI_FC_MODULE_FLAG)$(top_builddir)/ompi/$(OMPI_FORTRAN_USEMPI_DIR) \
26+
$(OMPI_FC_MODULE_FLAG)$(top_builddir)/ompi/mpi/fortran/use-mpi-f08/mod \
2527
-I$(top_srcdir) $(FCFLAGS_f90)
2628

2729
# Note that the mpi_f08-based bindings are optional -- they can only

ompi/mpiext/ftmpi/use-mpi-f08/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ AM_CPPFLAGS =
2626
# We must set these #defines and include paths so that the inner OMPI
2727
# MPI prototype header files do the Right Thing.
2828
AM_FCFLAGS = $(OMPI_FC_MODULE_FLAG)$(top_builddir)/ompi/mpi/fortran/use-mpi \
29+
$(OMPI_FC_MODULE_FLAG)$(top_builddir)/ompi/$(OMPI_FORTRAN_USEMPI_DIR) \
2930
$(OMPI_FC_MODULE_FLAG)$(top_builddir)/ompi/mpi/fortran/use-mpi-f08/mod \
3031
-I$(top_builddir) -I$(top_srcdir) $(FCFLAGS_f90)
3132

0 commit comments

Comments
 (0)