Skip to content

Commit ee2a8b6

Browse files
committed
run/example: run all if name not specified
1 parent 7b1efc7 commit ee2a8b6

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/fpm.f90

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,6 @@ subroutine cmd_run(settings,test)
486486
integer :: run_scope,firsterror
487487
integer, allocatable :: stat(:),target_ID(:)
488488
character(len=:),allocatable :: line
489-
logical :: toomany
490489

491490
call get_package_data(package, "fpm.toml", error, apply_defaults=.true.)
492491
if (allocated(error)) then
@@ -547,11 +546,8 @@ subroutine cmd_run(settings,test)
547546
end if
548547

549548
! Check all names are valid
550-
! or no name and found more than one file
551-
toomany= size(settings%name)==0 .and. size(executables)>1
552-
if ( any(.not.found) &
553-
& .or. &
554-
& (toomany .and. .not.test) .and. .not. settings%list) then
549+
! or no name and found more than one file
550+
if ( any(.not.found) ) then
555551
line=join(settings%name)
556552
if(line/='.')then ! do not report these special strings
557553
if(any(.not.found))then

0 commit comments

Comments
 (0)