Skip to content

Commit

Permalink
fix app args
Browse files Browse the repository at this point in the history
  • Loading branch information
perazz committed Jun 17, 2023
1 parent 86e3d18 commit d3c3a16
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/fpm_command_line.f90
Original file line number Diff line number Diff line change
Expand Up @@ -323,15 +323,16 @@ subroutine get_command_line_settings(cmd_settings)

! If there are additional command-line arguments, remove the additional
! double quotes which have been added by M_CLI2
call remove_characters_in_set(remaining,set='"')
val_runner_args=sget('runner-args')
call remove_characters_in_set(val_runner_args,set='"')

c_compiler = sget('c-compiler')
cxx_compiler = sget('cxx-compiler')
archiver = sget('archiver')
allocate(fpm_run_settings :: cmd_settings)
val_runner=sget('runner')
if(specified('runner') .and. val_runner=='')val_runner='echo'
val_runner_args=sget('runner-args')

cmd_settings=fpm_run_settings(&
& args=remaining,&
& profile=val_profile,&
Expand Down Expand Up @@ -577,15 +578,16 @@ subroutine get_command_line_settings(cmd_settings)

! If there are additional command-line arguments, remove the additional
! double quotes which have been added by M_CLI2
call remove_characters_in_set(remaining,set='"')
val_runner_args=sget('runner-args')
call remove_characters_in_set(val_runner_args,set='"')

c_compiler = sget('c-compiler')
cxx_compiler = sget('cxx-compiler')
archiver = sget('archiver')
allocate(fpm_test_settings :: cmd_settings)
val_runner=sget('runner')
if(specified('runner') .and. val_runner=='')val_runner='echo'
val_runner_args=sget('runner-args')

cmd_settings=fpm_test_settings(&
& args=remaining, &
& profile=val_profile, &
Expand Down

0 comments on commit d3c3a16

Please sign in to comment.