diff --git a/var/spack/repos/builtin/packages/openjpeg/package.py b/var/spack/repos/builtin/packages/openjpeg/package.py index 6b72168177..c451758ef0 100644 --- a/var/spack/repos/builtin/packages/openjpeg/package.py +++ b/var/spack/repos/builtin/packages/openjpeg/package.py @@ -50,3 +50,8 @@ def url_for_version(self, version): 'https://github.com/uclouvain/openjpeg/archive/version.{0}.tar.gz' return url_fmt.format(version) + + @property + def libs(self): + return find_libraries('libopenjp{0}'.format(self.version.up_to(1)), + root=self.prefix, recursive=True)