correct MPI detection for Fortran

This commit is contained in:
Axel Kohlmeyer
2022-08-06 18:46:56 -04:00
parent 5867f15c6b
commit 801d59a9ac

View File

@ -17,7 +17,7 @@ if(CMAKE_Fortran_COMPILER)
get_filename_component(LAMMPS_FORTRAN_MODULE ${LAMMPS_SOURCE_DIR}/../fortran/lammps.f90 ABSOLUTE) get_filename_component(LAMMPS_FORTRAN_MODULE ${LAMMPS_SOURCE_DIR}/../fortran/lammps.f90 ABSOLUTE)
if(BUILD_MPI) if(BUILD_MPI)
find_package(MPI REQUIRED) find_package(MPI REQUIRED)
if((NOT MPI_Fortran) OR (NOT MPI_Fortran_HAVE_F77_HEADER) OR (NOT MPI_Fortran_HAVE_F90_MODULE)) if((NOT MPI_Fortran_FOUND) OR (NOT MPI_Fortran_HAVE_F77_HEADER))
message(STATUS "Skipping Tests for the LAMMPS Fortran Module: no MPI support for Fortran") message(STATUS "Skipping Tests for the LAMMPS Fortran Module: no MPI support for Fortran")
return() return()
endif() endif()