aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Ehlert <28669218+awvwgk@users.noreply.github.com>2020-12-10 18:33:03 +0100
committerSebastian Ehlert <28669218+awvwgk@users.noreply.github.com>2020-12-10 18:33:03 +0100
commitbc9638225ad7b696614e1c47335ec390ea268088 (patch)
tree1268256cb5dbbc3a1e052e7395bb42ab3c6713ac
parent96c6cb0427dd794cac027f45f2e8cc131a7f905b (diff)
downloadfpm-bc9638225ad7b696614e1c47335ec390ea268088.tar.gz
fpm-bc9638225ad7b696614e1c47335ec390ea268088.zip
Include example programs in dependency tree
-rw-r--r--fpm/src/fpm/dependency.f9010
1 files changed, 10 insertions, 0 deletions
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