Skip to content

Commit

Permalink
Add cmake spec
Browse files Browse the repository at this point in the history
Constrain to CMake >=3.23.0 as required by Trilinos.
  • Loading branch information
xylar committed Mar 1, 2023
1 parent 15bc19d commit 06581ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions conda/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ def build_spack_env(config, update_spack, machine, compiler, mpi, spack_env,
spack_base, spack_template_path, env_vars, tmpdir, logger):

albany = config.get('deploy', 'albany')
cmake = config.get('deploy', 'cmake')
esmf = config.get('deploy', 'esmf')
lapack = config.get('deploy', 'lapack')
petsc = config.get('deploy', 'petsc')
Expand All @@ -395,6 +396,9 @@ def build_spack_env(config, update_spack, machine, compiler, mpi, spack_env,

specs = list()

if cmake != 'None':
specs.append(f'cmake@{cmake}')

e3sm_hdf5_netcdf = config.getboolean('deploy', 'use_e3sm_hdf5_netcdf')
if not e3sm_hdf5_netcdf:
hdf5 = config.get('deploy', 'hdf5')
Expand Down
2 changes: 2 additions & 0 deletions conda/default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ mpi = nompi

# the version of various packages to include if using spack
albany = develop
# cmake newer than 3.23.0 needed for Trilinos
cmake = 3.23.0:
esmf = 8.2.0
hdf5 = 1.12.1
lapack = 3.9.1
Expand Down

0 comments on commit 06581ad

Please sign in to comment.