Jali: Fix bugs in CMake section (#18447)

Fix variant name and cmake variable.

Co-authored-by: Rao Garimella <rao@abyzou.lanl.gov>
This commit is contained in:
Rao Garimella 2020-09-01 13:18:24 -06:00 committed by GitHub
parent e7f1eeb7af
commit ea97b37f60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,15 +44,11 @@ class Jali(CMakePackage):
def cmake_args(self):
options = []
if '+with_mstk' in self.spec:
options.append('-DENABLE_MSTK_Mesh=ON')
else:
options.append('-DENABLE_MSTK_Mesh=OFF')
# Turn MSTK ON/OFF
options.append(self.define_from_variant('ENABLE_MSTK_Mesh', 'mstk'))
# Unit test variant
if self.run_tests:
options.append('-DENABLE_Tests=ON')
else:
options.append('-DENABLE_Tests=OFF')
options.append(self.define('ENABLE_TESTS', self.run_tests))
return options