cuda: add libxml2 as a dependency for newer versions (#14758)

This commit is contained in:
Scott Wittenburg 2020-02-14 11:13:30 -07:00 committed by GitHub
parent e65aa7569e
commit 3c28e72d2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,6 +73,14 @@ class Cuda(Package):
# Mojave support -- only macOS High Sierra 10.13 is supported. # Mojave support -- only macOS High Sierra 10.13 is supported.
conflicts('arch=darwin-mojave-x86_64') 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): def setup_run_environment(self, env):
env.set('CUDA_HOME', self.prefix) env.set('CUDA_HOME', self.prefix)