Skip to content

Commit

Permalink
search in bash path
Browse files Browse the repository at this point in the history
  • Loading branch information
perazz committed Dec 13, 2023
1 parent 12db5bb commit e93900c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/fpm_meta.f90
Original file line number Diff line number Diff line change
Expand Up @@ -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%...'

Expand Down

0 comments on commit e93900c

Please sign in to comment.