aboutsummaryrefslogtreecommitdiff
path: root/src/fpm_model.f90
diff options
context:
space:
mode:
authorLaurence Kedward <laurence.kedward@bristol.ac.uk>2021-04-16 16:07:55 +0100
committerGitHub <noreply@github.com>2021-04-16 16:07:55 +0100
commit4cbf9194e47991a208cd61b1f3a0a55f0ae16573 (patch)
treecbb083bd19a22a1236c31de991409ce06b595748 /src/fpm_model.f90
parenta540c83d9e303acd6fece95927c49fa8d2565366 (diff)
parentc80169d9ad9e619e9c022eedb2313e62ca4ef0a9 (diff)
downloadfpm-4cbf9194e47991a208cd61b1f3a0a55f0ae16573.tar.gz
fpm-4cbf9194e47991a208cd61b1f3a0a55f0ae16573.zip
Merge pull request #438 from LKedward/external-mods
Add: external-modules key to build table for non-fpm modules
Diffstat (limited to 'src/fpm_model.f90')
-rw-r--r--src/fpm_model.f9010
1 files changed, 10 insertions, 0 deletions
diff --git a/src/fpm_model.f90 b/src/fpm_model.f90
index bfb0115..ec366d6 100644
--- a/src/fpm_model.f90
+++ b/src/fpm_model.f90
@@ -129,6 +129,9 @@ type :: fpm_model_t
!> Native libraries to link against
type(string_t), allocatable :: link_libraries(:)
+ !> External modules used
+ type(string_t), allocatable :: external_modules(:)
+
!> Project dependencies
type(dependency_tree_t) :: deps
@@ -276,6 +279,13 @@ function info_model(model) result(s)
if (i < size(model%link_libraries)) s = s // ", "
end do
s = s // "]"
+ ! type(string_t), allocatable :: external_modules(:)
+ s = s // ", external_modules=["
+ do i = 1, size(model%external_modules)
+ s = s // '"' // model%external_modules(i)%s // '"'
+ if (i < size(model%external_modules)) s = s // ", "
+ end do
+ s = s // "]"
! type(dependency_tree_t) :: deps
! TODO: print `dependency_tree_t` properly, which should become part of the
! model, not imported from another file