aboutsummaryrefslogtreecommitdiff
path: root/src/fpm_targets.f90
diff options
context:
space:
mode:
Diffstat (limited to 'src/fpm_targets.f90')
-rw-r--r--src/fpm_targets.f901
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fpm_targets.f90 b/src/fpm_targets.f90
index 5f3fbaf..7ea815b 100644
--- a/src/fpm_targets.f90
+++ b/src/fpm_targets.f90
@@ -687,6 +687,7 @@ 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