summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/openexr/package.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/openexr/package.py b/var/spack/repos/builtin/packages/openexr/package.py
index 90e291c912..768f95e1c0 100644
--- a/var/spack/repos/builtin/packages/openexr/package.py
+++ b/var/spack/repos/builtin/packages/openexr/package.py
@@ -85,6 +85,17 @@ class Openexr(CMakePackage, AutotoolsPackage):
with when("build_system=cmake"):
depends_on("cmake@3.12:", type="build")
+ @property
+ def libs(self):
+ # Override because libs have different case than Spack package name
+ name = "libOpenEXR*"
+ # 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
+
class CMakeBuilder(CMakeBuilder):
def cmake_args(self):