diff --git a/src/fpm.f90 b/src/fpm.f90 index 622d1fd615..29dbfa257c 100644 --- a/src/fpm.f90 +++ b/src/fpm.f90 @@ -534,7 +534,8 @@ subroutine cmd_run(settings,test) do j=1,size(settings%name) - if (glob(trim(exe_source%exe_name),trim(settings%name(j)))) then + if (glob(trim(exe_source%exe_name),trim(settings%name(j))) .and. .not.found(j)) then + found(j) = .true. exe_cmd%s = exe_target%output_file