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:
parent
e7f1eeb7af
commit
ea97b37f60
@ -44,15 +44,11 @@ class Jali(CMakePackage):
|
|||||||
|
|
||||||
def cmake_args(self):
|
def cmake_args(self):
|
||||||
options = []
|
options = []
|
||||||
if '+with_mstk' in self.spec:
|
|
||||||
options.append('-DENABLE_MSTK_Mesh=ON')
|
# Turn MSTK ON/OFF
|
||||||
else:
|
options.append(self.define_from_variant('ENABLE_MSTK_Mesh', 'mstk'))
|
||||||
options.append('-DENABLE_MSTK_Mesh=OFF')
|
|
||||||
|
|
||||||
# Unit test variant
|
# Unit test variant
|
||||||
if self.run_tests:
|
options.append(self.define('ENABLE_TESTS', self.run_tests))
|
||||||
options.append('-DENABLE_Tests=ON')
|
|
||||||
else:
|
|
||||||
options.append('-DENABLE_Tests=OFF')
|
|
||||||
|
|
||||||
return options
|
return options
|
||||||
|
Loading…
Reference in New Issue
Block a user