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 1, 2022
1 parent d9ed34d commit bd53a84
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 @@ -268,8 +268,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 bd53a84

Please sign in to comment.