cuda: add libxml2 as a dependency for newer versions (#14758)
This commit is contained in:
parent
e65aa7569e
commit
3c28e72d2f
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user