Skip to content

Commit

Permalink
fix: macros available while running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arteevraina committed Sep 6, 2022
1 parent 82d368c commit a49a97a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/fpm_targets.f90
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,9 @@ subroutine build_target_list(targets,model)

call add_target(targets,package=model%packages(j)%name,type = FPM_TARGET_OBJECT,&
output_name = get_object_name(sources(i)), &
source = sources(i) &
)
source = sources(i), &
macros = model%packages(j)%macros, &
version = model%packages(j)%version)

if (sources(i)%unit_scope == FPM_SCOPE_APP) then

Expand Down

0 comments on commit a49a97a

Please sign in to comment.