summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Wittenburg <scott.wittenburg@kitware.com>2020-02-14 11:13:30 -0700
committerGitHub <noreply@github.com>2020-02-14 12:13:30 -0600
commit3c28e72d2f474a3a739725e906c7cea4b8be8f4d (patch)
tree4aafafcc1835609cdc977264b090be3aefdabbc7
parente65aa7569e754c69bac92745d2c4e5739e9d93a1 (diff)
downloadspack-3c28e72d2f474a3a739725e906c7cea4b8be8f4d.tar.gz
spack-3c28e72d2f474a3a739725e906c7cea4b8be8f4d.tar.bz2
spack-3c28e72d2f474a3a739725e906c7cea4b8be8f4d.tar.xz
spack-3c28e72d2f474a3a739725e906c7cea4b8be8f4d.zip
cuda: add libxml2 as a dependency for newer versions (#14758)
-rw-r--r--var/spack/repos/builtin/packages/cuda/package.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/cuda/package.py b/var/spack/repos/builtin/packages/cuda/package.py
index df71f62608..13675fb774 100644
--- a/var/spack/repos/builtin/packages/cuda/package.py
+++ b/var/spack/repos/builtin/packages/cuda/package.py
@@ -73,6 +73,14 @@ class Cuda(Package):
# Mojave support -- only macOS High Sierra 10.13 is supported.
conflicts('arch=darwin-mojave-x86_64')
+ depends_on('libxml2', when='@10.1.243:')
+
+ def setup_build_environment(self, env):
+ if self.spec.satisfies('@10.1.243:'):
+ libxml2_home = self.spec['libxml2'].prefix
+ env.set('LIBXML2HOME', libxml2_home)
+ env.append_path('LD_LIBRARY_PATH', libxml2_home.lib)
+
def setup_run_environment(self, env):
env.set('CUDA_HOME', self.prefix)