From a49a97a7027c2ac6553ec5174e17917a8fe1ed93 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 ca88bb5e35..9119f66d8a 100644 --- a/src/fpm_targets.f90 +++ b/src/fpm_targets.f90 @@ -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