aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fpm_targets.f903
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fpm_targets.f90 b/src/fpm_targets.f90
index e8fcf9c..7ea815b 100644
--- a/src/fpm_targets.f90
+++ b/src/fpm_targets.f90
@@ -687,10 +687,11 @@ subroutine filter_modules(targets, list)
do i = 1, size(targets)
associate(target => targets(i)%ptr)
if (.not.allocated(target%source)) cycle
+ if (target%source%unit_type == FPM_UNIT_SUBMODULE) cycle
if (n + size(target%source%modules_provided) >= size(list)) call resize(list)
do j = 1, size(target%source%modules_provided)
n = n + 1
- list(n)%s = join_path(target%output_dir, "fpm", &
+ list(n)%s = join_path(target%output_dir, &
target%source%modules_provided(j)%s)
end do
end associate