Skip to content

Commit f4df820

Browse files
committed
bug: macros don't propage to executables
Fixes #777
1 parent 49f2ff3 commit f4df820

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/fpm_targets.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,8 @@ subroutine build_target_list(targets,model)
278278

279279
call add_target(targets,package=model%packages(j)%name,type = exe_type,&
280280
output_name = get_object_name(sources(i)), &
281-
source = sources(i) &
281+
source = sources(i), &
282+
macros = model%packages(j)%macros &
282283
)
283284

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

0 commit comments

Comments
 (0)