aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Curcic <caomaco@gmail.com>2021-02-05 11:56:30 -0500
committerGitHub <noreply@github.com>2021-02-05 11:56:30 -0500
commit9fe39db656155b5106a49a54c8d2cc2147d060f1 (patch)
treeefbf2032569d40f9df2165c44fe31e5169247e1e
parent9f012b5fd725a9d4641f22e3e86dffea8ef0e5d6 (diff)
parentc25c0dd3dd9b5fc3a0e1f4ae256f3a7695bb9de4 (diff)
downloadfpm-9fe39db656155b5106a49a54c8d2cc2147d060f1.tar.gz
fpm-9fe39db656155b5106a49a54c8d2cc2147d060f1.zip
Merge pull request #346 from awvwgk/default-example
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