Skip to content

Commit bad1556

Browse files
committed
Update fpm_meta.f90
1 parent 1a948be commit bad1556

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/fpm_meta.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ logical function msmpi_init(this,compiler,error) result(found)
539539

540540
character(len=:), allocatable :: incdir,windir,libdir,bindir,post,reall,msysdir
541541
type(version_t) :: ver,ver10
542-
type(string_t) :: cpath,msys_path
542+
type(string_t) :: cpath,msys_path,runner_path
543543
logical :: msys2
544544

545545
!> Default: not found
@@ -586,11 +586,11 @@ logical function msmpi_init(this,compiler,error) result(found)
586586
! Do a third attempt: search for mpiexec.exe in PATH location
587587
if (len_trim(bindir)<=0 .or. allocated(error)) then
588588

589-
call get_mpi_runner(windir,verbose,error)
589+
call get_mpi_runner(runner_path,verbose,error)
590590

591591
if (.not.allocated(error)) then
592592
print *, '+ searching location of mpi runner, ',windir
593-
call find_command_location(windir,bindir,verbose=verbose,error=error)
593+
call find_command_location(runner_path%s,bindir,verbose=verbose,error=error)
594594
endif
595595

596596
endif

0 commit comments

Comments
 (0)