aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fpm/src/fpm_sources.f903
1 files changed, 2 insertions, 1 deletions
diff --git a/fpm/src/fpm_sources.f90 b/fpm/src/fpm_sources.f90
index 72fcf5b..448174e 100644
--- a/fpm/src/fpm_sources.f90
+++ b/fpm/src/fpm_sources.f90
@@ -572,7 +572,8 @@ subroutine resolve_module_dependencies(sources)
cycle
end if
- if (sources(i)%unit_type == FPM_UNIT_PROGRAM) then
+ if (sources(i)%unit_scope == FPM_SCOPE_APP .OR. &
+ sources(i)%unit_scope == FPM_SCOPE_TEST ) then
dep%ptr => &
find_module_dependency(sources,sources(i)%modules_used(j)%s, &
include_dir = dirname(sources(i)%file_name))