Skip to content

Commit

Permalink
improve spack package.py: use spec.satisfies instead of spec.value
Browse files Browse the repository at this point in the history
  • Loading branch information
JiakunYan committed Apr 25, 2024
1 parent 88f0a66 commit d9b93bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/spack/packages/lci/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def cmake_args(self):
self.define_from_variant('LCI_USE_GPROF', 'gprof'),
]

if self.spec.variants['default-dreg'].value != 'auto':
if not self.spec.satisfies('default-dreg=auto'):
arg = self.define_from_variant('LCI_USE_DREG_DEFAULT', 'default-dreg')
args.append(arg)

Expand Down

0 comments on commit d9b93bf

Please sign in to comment.