Skip to content
Closed
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions easybuild/easyblocks/l/lammps.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,16 @@ def configure_step(self, **kwargs):
for package in self.cfg['user_packages']:
self.cfg.update('configopts', '-D%s%s=on' % (self.pkg_user_prefix, package))

if LooseVersion(self.cur_version) >= LooseVersion('29Aug2024'):
if self.cfg['runtest'] is None or self.cfg['runtest']:
self.cfg['runtest'] = True
build_dep_names = [d['name'] for d in self.cfg.builddependencies()]
for tool in ['PyYAML']:
if tool not in build_dep_names:
raise EasyBuildError("%s not included as build dependency", tool)
else:
self.cfg.update('configopts', '-DENABLE_TESTING=on')

# Optimization settings
pkg_opt = '-D%sOPT=' % self.pkg_prefix
if pkg_opt not in self.cfg['configopts']:
Expand Down