From c25c0dd3dd9b5fc3a0e1f4ae256f3a7695bb9de4 Mon Sep 17 00:00:00 2001 From: Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com> Date: Sun, 31 Jan 2021 15:17:44 +0100 Subject: Include root dir in path to default example setup --- fpm/src/fpm/manifest.f90 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3