qhull deprecated libqhull.so in 2020.2 (#26304)

This commit is contained in:
Gregory Lee 2021-09-28 16:54:30 -07:00 committed by GitHub
parent 32b5669e8d
commit 82d857dced
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,3 +34,14 @@ def flag_handler(self, name, flags):
if name == 'cxxflags' and self.version == Version('2020.1'):
flags.append(self.compiler.cxx11_flag)
return (flags, None, None)
@property
def libs(self):
# in 2020.2 the libqhull.so library was deprecated in favor of
# libqhull_r.so
if self.spec.satisfies('@2020.2:'):
return find_libraries('libqhull_r', self.prefix,
shared=True, recursive=True)
else:
return find_libraries('libqhull', self.prefix,
shared=True, recursive=True)