From bd53a845fff7a216eceee9efda69135070bf36d0 Mon Sep 17 00:00:00 2001 From: arteevraina Date: Tue, 23 Aug 2022 22:15:39 +0530 Subject: [PATCH] fix: macros available while running tests --- src/fpm_targets.f90 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fpm_targets.f90 b/src/fpm_targets.f90 index 8809795cf4..d7f89f3dc7 100644 --- a/src/fpm_targets.f90 +++ b/src/fpm_targets.f90 @@ -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