Skip to content

Commit 26c291f

Browse files
committed
set all settings in the CLI routine
1 parent 78656e7 commit 26c291f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/fpm.f90

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -728,9 +728,6 @@ subroutine delete_targets(settings, error)
728728
call get_package_data(package, "fpm.toml", error, apply_defaults=.true.)
729729
if (allocated(error)) return
730730

731-
! Ensure tests will be modeled
732-
if (settings%clean_test) settings%build_tests = .true.
733-
734731
! Build the model to understand targets
735732
call build_model(model, settings, package, error)
736733
if (allocated(error)) return

src/fpm_command_line.f90

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,9 @@ subroutine get_command_line_settings(cmd_settings)
682682
cln%clean_apps = clean_apps
683683
cln%clean_examples = clean_examples
684684

685+
! Ensure tests will be modeled if they have to be cleaned
686+
if (clean_test) cln%build_tests = .true.
687+
685688
end select
686689
end block
687690

0 commit comments

Comments
 (0)