Skip to content

Commit 886d609

Browse files
committed
robust monolithic evaluation
1 parent 5486d45 commit 886d609

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/fpm/manifest/library.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ elemental logical function monolithic(self)
8383
!> Instance of the library configuration
8484
class(library_config_t), intent(in) :: self
8585

86-
monolithic = self%lib_type == "monolithic"
86+
monolithic = .not.(static(self) .or. shared(self))
8787
end function monolithic
8888

8989

@@ -121,6 +121,7 @@ subroutine new_library(self, table, error)
121121
call fatal_error(error,"Error while reading value for 'source-form' in fpm.toml, expecting logical")
122122
return
123123
end if
124+
124125
select case(self%lib_type)
125126
case("shared","static","monolithic")
126127
! OK

0 commit comments

Comments
 (0)