Skip to content

Commit c25c0dd

Browse files
committed
Include root dir in path to default example setup
1 parent a16e812 commit c25c0dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fpm/src/fpm/manifest.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ subroutine package_defaults(package, root, error)
154154

155155
! Populate example in case we find the default example directory
156156
if (.not.allocated(package%example) .and. &
157-
exists(join_path("example","main.f90"))) then
157+
& exists(join_path(root, "example", "main.f90"))) then
158158
allocate(package%example(1))
159159
call default_example(package%example(1), package%name)
160160
endif

0 commit comments

Comments
 (0)