scotch: @7: no longer builds libptesmumps.so (#29842)

This commit is contained in:
Carlos Bederián 2022-04-06 02:08:21 -03:00 committed by GitHub
parent 7613b8a3bc
commit bd3e86ee28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,10 +87,12 @@ def libs(self):
if '+mpi' in self.spec:
libraries = ['libptscotch', 'libptscotcherr'] + libraries
if '+esmumps' in self.spec:
if '+esmumps' in self.spec:
if '~mpi' in self.spec or self.spec.version >= Version('7.0.0'):
libraries = ['libesmumps'] + libraries
else:
libraries = ['libptesmumps'] + libraries
elif '~mpi+esmumps' in self.spec:
libraries = ['libesmumps'] + libraries
scotchlibs = find_libraries(
libraries, root=self.prefix, recursive=True, shared=shared