Skip to content

Commit

Permalink
Updating MPI cmake find with components.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwaxmonsky committed Oct 30, 2024
1 parent 1285ea9 commit c707b20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ endif()

#------------------------------------------------------------------------------
# Set MPI flags for Fortran with MPI F08 interface
find_package(MPI REQUIRED Fortran)
find_package(MPI REQUIRED COMPONENTS Fortran)
if(NOT MPI_Fortran_HAVE_F08_MODULE)
message(FATAL_ERROR "MPI implementation does not support the Fortran 2008 mpi_f08 interface")
endif()
Expand Down

0 comments on commit c707b20

Please sign in to comment.