Skip to content

Commit 188a61b

Browse files
committed
fix: macros available while running tests
1 parent 2a07c63 commit 188a61b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/fpm_targets.f90

+3-2
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,9 @@ subroutine build_target_list(targets,model)
242242

243243
call add_target(targets,package=model%packages(j)%name,type = FPM_TARGET_OBJECT,&
244244
output_name = get_object_name(sources(i)), &
245-
source = sources(i) &
246-
)
245+
source = sources(i), &
246+
macros = model%packages(j)%macros, &
247+
version = model%packages(j)%version)
247248

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

0 commit comments

Comments
 (0)