libpng: add libs property (#39638)
This commit is contained in:
parent
44922f734d
commit
2f5988cec7
1 changed files with 7 additions and 0 deletions
|
@ -38,6 +38,13 @@ class Libpng(CMakePackage):
|
|||
description="Build shared libs, static libs or both",
|
||||
)
|
||||
|
||||
@property
|
||||
def libs(self):
|
||||
# v1.2 does not have a version-less symlink
|
||||
libraries = f"libpng{self.version.up_to(2).joined}"
|
||||
shared = "libs=shared" in self.spec
|
||||
return find_libraries(libraries, root=self.prefix, shared=shared, recursive=True)
|
||||
|
||||
|
||||
class CMakeBuilder(CMakeBuilder):
|
||||
def cmake_args(self):
|
||||
|
|
Loading…
Reference in a new issue