aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastian Ehlert <28669218+awvwgk@users.noreply.github.com>2021-11-20 19:00:52 +0100
committerGitHub <noreply@github.com>2021-11-20 19:00:52 +0100
commitc39aa47da857957b0a110a6939a5071bbc903571 (patch)
tree522477aaa3b1314784dca10917c0aa6c1e815bda /src
parentd08e91f66e74040c602feb3ecb4cf461eeac27db (diff)
parent86de17371d989595c82488ebe948a870ac36bd68 (diff)
downloadfpm-c39aa47da857957b0a110a6939a5071bbc903571.tar.gz
fpm-c39aa47da857957b0a110a6939a5071bbc903571.zip
Merge pull request #612 from LKedward/fix-modules-install
Fix modules listing (for install)
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