qb3: add custom libs property (#42275)
This commit is contained in:
parent
f514e72011
commit
a2908fb9f7
1 changed files with 11 additions and 0 deletions
|
@ -18,3 +18,14 @@ class Qb3(CMakePackage):
|
|||
|
||||
depends_on("cmake@3.5:", type="build")
|
||||
depends_on("libicd")
|
||||
|
||||
@property
|
||||
def libs(self):
|
||||
# Override because libs have different case than Spack package name
|
||||
name = "libQB3*"
|
||||
# We expect libraries to be in either lib64 or lib directory
|
||||
for root in (self.prefix.lib64, self.prefix.lib):
|
||||
liblist = find_libraries(name, root=root, shared=True, recursive=False)
|
||||
if liblist:
|
||||
break
|
||||
return liblist
|
||||
|
|
Loading…
Reference in a new issue