aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLKedward <laurence.kedward@bristol.ac.uk>2021-11-20 15:05:59 +0000
committerLKedward <laurence.kedward@bristol.ac.uk>2021-11-20 15:05:59 +0000
commit86de17371d989595c82488ebe948a870ac36bd68 (patch)
tree522477aaa3b1314784dca10917c0aa6c1e815bda
parent09ec9422077851171e220883de810ac6c38e67ed (diff)
downloadfpm-86de17371d989595c82488ebe948a870ac36bd68.tar.gz
fpm-86de17371d989595c82488ebe948a870ac36bd68.zip
Don't try to install submodule files
-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