From bc9638225ad7b696614e1c47335ec390ea268088 Mon Sep 17 00:00:00 2001 From: Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com> Date: Thu, 10 Dec 2020 18:33:03 +0100 Subject: Include example programs in dependency tree --- fpm/src/fpm/dependency.f90 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/fpm/src/fpm/dependency.f90 b/fpm/src/fpm/dependency.f90 index e5e18ae..144ffbe 100644 --- a/fpm/src/fpm/dependency.f90 +++ b/fpm/src/fpm/dependency.f90 @@ -310,6 +310,16 @@ contains if (allocated(error)) return end if + if (allocated(package%example)) then + do ii = 1, size(package%example) + if (allocated(package%example(ii)%dependency)) then + call self%add(package%example(ii)%dependency, error) + if (allocated(error)) exit + end if + end do + if (allocated(error)) return + end if + if (allocated(package%test)) then do ii = 1, size(package%test) if (allocated(package%test(ii)%dependency)) then -- cgit v1.2.3