aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Ehlert <28669218+awvwgk@users.noreply.github.com>2021-01-31 15:17:44 +0100
committerSebastian Ehlert <28669218+awvwgk@users.noreply.github.com>2021-01-31 15:18:54 +0100
commitc25c0dd3dd9b5fc3a0e1f4ae256f3a7695bb9de4 (patch)
tree9fbac7438321b07cb3f897b9303138fe4f34d7fa
parenta16e812730c1b438e887679df44d7b83ba584f8e (diff)
downloadfpm-c25c0dd3dd9b5fc3a0e1f4ae256f3a7695bb9de4.tar.gz
fpm-c25c0dd3dd9b5fc3a0e1f4ae256f3a7695bb9de4.zip
Include root dir in path to default example setup
-rw-r--r--fpm/src/fpm/manifest.f902
1 files changed, 1 insertions, 1 deletions
diff --git a/fpm/src/fpm/manifest.f90 b/fpm/src/fpm/manifest.f90
index 7e80b29..5a8f595 100644
--- a/fpm/src/fpm/manifest.f90
+++ b/fpm/src/fpm/manifest.f90
@@ -154,7 +154,7 @@ contains
! Populate example in case we find the default example directory
if (.not.allocated(package%example) .and. &
- exists(join_path("example","main.f90"))) then
+ & exists(join_path(root, "example", "main.f90"))) then
allocate(package%example(1))
call default_example(package%example(1), package%name)
endif