Skip to content

Commit 9fe39db

Browse files
authored
Merge pull request #346 from awvwgk/default-example
Include root dir in path to default example setup
2 parents 9f012b5 + c25c0dd commit 9fe39db

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)