Skip to content

Commit c39aa47

Browse files
authored
Merge pull request #612 from LKedward/fix-modules-install
Fix modules listing (for install)
2 parents d08e91f + 86de173 commit c39aa47

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
@@ -687,10 +687,11 @@ subroutine filter_modules(targets, list)
687687
do i = 1, size(targets)
688688
associate(target => targets(i)%ptr)
689689
if (.not.allocated(target%source)) cycle
690+
if (target%source%unit_type == FPM_UNIT_SUBMODULE) cycle
690691
if (n + size(target%source%modules_provided) >= size(list)) call resize(list)
691692
do j = 1, size(target%source%modules_provided)
692693
n = n + 1
693-
list(n)%s = join_path(target%output_dir, "fpm", &
694+
list(n)%s = join_path(target%output_dir, &
694695
target%source%modules_provided(j)%s)
695696
end do
696697
end associate

0 commit comments

Comments
 (0)