diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/cuda/package.py | 8 |
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) |