diff --git a/src/fpm_meta.f90 b/src/fpm_meta.f90 index 6d1d43cd82..6e35ec5812 100644 --- a/src/fpm_meta.f90 +++ b/src/fpm_meta.f90 @@ -643,7 +643,7 @@ logical function msmpi_init(this,compiler,error) result(found) ! Third attempt for bash-style shell if (len_trim(bindir)<=0 .or. allocated(error)) then if (verbose) print *, '+ %MSMPI_BIN% empty, searching /c/Program Files/Microsoft MPI/Bin/ ...' - call get_absolute_path('/c/Program Files/Microsoft MPI/Bin/',bindir,error) + call get_absolute_path('/c/Program Files/Microsoft MPI/Bin/mpiexec.exe',bindir,error) endif ! Do a fourth attempt: search for mpiexec.exe in PATH location