summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGregory Lee <lee218@llnl.gov>2021-09-28 16:54:30 -0700
committerGitHub <noreply@github.com>2021-09-28 16:54:30 -0700
commit82d857dceda972ca744d270595c9d38a6684c4d0 (patch)
treefd7257b56177934a63bc5fd15549ff34618714c0 /var
parent32b5669e8d14d25c112be6157e6c0a3ea81d8c97 (diff)
downloadspack-82d857dceda972ca744d270595c9d38a6684c4d0.tar.gz
spack-82d857dceda972ca744d270595c9d38a6684c4d0.tar.bz2
spack-82d857dceda972ca744d270595c9d38a6684c4d0.tar.xz
spack-82d857dceda972ca744d270595c9d38a6684c4d0.zip
qhull deprecated libqhull.so in 2020.2 (#26304)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/qhull/package.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/qhull/package.py b/var/spack/repos/builtin/packages/qhull/package.py
index 583a2a0371..c99b0e7f9c 100644
--- a/var/spack/repos/builtin/packages/qhull/package.py
+++ b/var/spack/repos/builtin/packages/qhull/package.py
@@ -34,3 +34,14 @@ class Qhull(CMakePackage):
if name == 'cxxflags' and self.version == Version('2020.1'):
flags.append(self.compiler.cxx11_flag)
return (flags, None, None)
+
+ @property
+ def libs(self):
+ # in 2020.2 the libqhull.so library was deprecated in favor of
+ # libqhull_r.so
+ if self.spec.satisfies('@2020.2:'):
+ return find_libraries('libqhull_r', self.prefix,
+ shared=True, recursive=True)
+ else:
+ return find_libraries('libqhull', self.prefix,
+ shared=True, recursive=True)