aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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