From 8c558743ecad4f21f9695f81826326c5a14ee93f Mon Sep 17 00:00:00 2001 From: LKedward Date: Sat, 26 Sep 2020 11:26:37 +0100 Subject: Fix: allow app modules to use modules in same folder --- fpm/src/fpm_sources.f90 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) -- cgit v1.2.3