diff options
author | Tom Payerle <payerle@umd.edu> | 2024-03-08 01:06:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-08 07:06:38 +0100 |
commit | 799a8a5090a6557653e014104807d756aaf64505 (patch) | |
tree | a2fdf2c4f93e24a83e12538a5880327e212db50f /var | |
parent | c218ee50e9fe4f2069f443b6001b49679ee12604 (diff) | |
download | spack-799a8a5090a6557653e014104807d756aaf64505.tar.gz spack-799a8a5090a6557653e014104807d756aaf64505.tar.bz2 spack-799a8a5090a6557653e014104807d756aaf64505.tar.xz spack-799a8a5090a6557653e014104807d756aaf64505.zip |
sfcgal: add custom libs property (#42276)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/sfcgal/package.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/sfcgal/package.py b/var/spack/repos/builtin/packages/sfcgal/package.py index 3d01ae506b..8185ac45f0 100644 --- a/var/spack/repos/builtin/packages/sfcgal/package.py +++ b/var/spack/repos/builtin/packages/sfcgal/package.py @@ -40,3 +40,14 @@ class Sfcgal(CMakePackage): # https://github.com/Oslandia/SFCGAL/releases/tag/v1.3.0 # Also, see https://github.com/Oslandia/SFCGAL-viewer return [self.define("BUILD_SHARED_LIBS", True), self.define("SFCGAL_BUILD_VIEWER", False)] + + @property + def libs(self): + # Override because libs have different case than Spack package name + name = "libSFCGAL*" + # 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 |