diff --git a/src/fpm_meta.f90 b/src/fpm_meta.f90 index 8751e0bf54..d761184fc0 100644 --- a/src/fpm_meta.f90 +++ b/src/fpm_meta.f90 @@ -635,7 +635,13 @@ logical function msmpi_init(this,compiler,error) result(found) call get_absolute_path('C:\Program Files\Microsoft MPI\Bin\mpiexec.exe',bindir,error) endif - ! Do a third attempt: search for mpiexec.exe in PATH location + ! 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) + endif + + ! Do a fourth attempt: search for mpiexec.exe in PATH location if (len_trim(bindir)<=0 .or. allocated(error)) then if (verbose) print *, '+ C:\Program Files\Microsoft MPI\Bin\ not found. searching %PATH%...'