mfem, hpx: fix recipes after conditional variants (#27215)
This commit is contained in:
parent
503576c017
commit
1dcabdbc8d
@ -163,13 +163,16 @@ class Hpx(CMakePackage, CudaPackage, ROCmPackage):
|
|||||||
patch('git_external.patch', when='@1.3.0 instrumentation=apex')
|
patch('git_external.patch', when='@1.3.0 instrumentation=apex')
|
||||||
|
|
||||||
def instrumentation_args(self):
|
def instrumentation_args(self):
|
||||||
for value in self.variants['instrumentation'].values:
|
args = []
|
||||||
|
for value in self.variants['instrumentation'][0].values:
|
||||||
if value == 'none':
|
if value == 'none':
|
||||||
continue
|
continue
|
||||||
|
|
||||||
condition = 'instrumentation={0}'.format(value)
|
condition = 'instrumentation={0}'.format(value)
|
||||||
yield self.define(
|
args.append(self.define(
|
||||||
'HPX_WITH_{0}'.format(value.upper()), condition in self.spec)
|
'HPX_WITH_{0}'.format(value.upper()), condition in self.spec
|
||||||
|
))
|
||||||
|
return args
|
||||||
|
|
||||||
def cmake_args(self):
|
def cmake_args(self):
|
||||||
spec, args = self.spec, []
|
spec, args = self.spec, []
|
||||||
|
@ -343,7 +343,7 @@ def is_sys_lib_path(dir):
|
|||||||
if '+cuda' in spec:
|
if '+cuda' in spec:
|
||||||
xcompiler = '-Xcompiler='
|
xcompiler = '-Xcompiler='
|
||||||
xlinker = '-Xlinker='
|
xlinker = '-Xlinker='
|
||||||
cuda_arch = spec.variants['cuda_arch'].value
|
cuda_arch = None if '~cuda' in spec else spec.variants['cuda_arch'].value
|
||||||
|
|
||||||
# We need to add rpaths explicitly to allow proper export of link flags
|
# We need to add rpaths explicitly to allow proper export of link flags
|
||||||
# from within MFEM.
|
# from within MFEM.
|
||||||
|
Loading…
Reference in New Issue
Block a user