Only add hwloc to tpl/dep list for certain versions of Trilinos (#25071)
This commit is contained in:
parent
0beb35e426
commit
bb20cadd91
@ -613,14 +613,13 @@ def define_tpl_enable(cmake_var, spec_var=None):
|
|||||||
|
|
||||||
# Enable TPLs based on whether they're in our spec, not whether they're
|
# Enable TPLs based on whether they're in our spec, not whether they're
|
||||||
# variant names: packages/features should disable availability
|
# variant names: packages/features should disable availability
|
||||||
for tpl_name, dep_name in [
|
tpl_dep_map = [
|
||||||
('ADIOS2', 'adios2'),
|
('ADIOS2', 'adios2'),
|
||||||
('BLAS', 'blas'),
|
('BLAS', 'blas'),
|
||||||
('Boost', 'boost'),
|
('Boost', 'boost'),
|
||||||
('CGNS', 'cgns'),
|
('CGNS', 'cgns'),
|
||||||
('HDF5', 'hdf5'),
|
('HDF5', 'hdf5'),
|
||||||
('HYPRE', 'hypre'),
|
('HYPRE', 'hypre'),
|
||||||
('HWLOC', 'hwloc'),
|
|
||||||
('LAPACK', 'lapack'),
|
('LAPACK', 'lapack'),
|
||||||
('Matio', 'matio'),
|
('Matio', 'matio'),
|
||||||
('METIS', 'metis'),
|
('METIS', 'metis'),
|
||||||
@ -629,7 +628,10 @@ def define_tpl_enable(cmake_var, spec_var=None):
|
|||||||
('SuperLU', 'superlu'),
|
('SuperLU', 'superlu'),
|
||||||
('X11', 'libx11'),
|
('X11', 'libx11'),
|
||||||
('Zlib', 'zlib'),
|
('Zlib', 'zlib'),
|
||||||
]:
|
]
|
||||||
|
if spec.satisfies('@13:'):
|
||||||
|
tpl_dep_map.append(('HWLOC', 'hwloc'))
|
||||||
|
for tpl_name, dep_name in tpl_dep_map:
|
||||||
have_dep = (dep_name in spec)
|
have_dep = (dep_name in spec)
|
||||||
options.append(define('TPL_ENABLE_' + tpl_name, have_dep))
|
options.append(define('TPL_ENABLE_' + tpl_name, have_dep))
|
||||||
if not have_dep:
|
if not have_dep:
|
||||||
|
Loading…
Reference in New Issue
Block a user