mariadb-c-client: fix location of libraries (#22873)

Override 'libs' property to search for expected library name:
default Spack implementation can only locate libraries if they
match the package name.
This commit is contained in:
Glenn Johnson 2021-04-13 17:48:01 -05:00 committed by GitHub
parent 757528d5fb
commit 7960c05922
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,3 +68,9 @@ def url_for_version(self, version):
def cmake_args(self):
args = ['-DWITH_EXTERNAL_ZLIB=ON', '-DWITH_MYSQLCOMPAT=ON']
return args
@property
def libs(self):
return find_libraries(
['libmariadb'], root=self.prefix, recursive=True, shared=True
)