Add tools and example variants to axom (#23877)
This commit is contained in:
parent
231490ce9a
commit
fb2c3cce6d
@ -57,6 +57,9 @@ class Axom(CachedCMakePackage, CudaPackage):
|
|||||||
variant('debug', default=False,
|
variant('debug', default=False,
|
||||||
description='Build debug instead of optimized version')
|
description='Build debug instead of optimized version')
|
||||||
|
|
||||||
|
variant('examples', default=True, description='Build examples')
|
||||||
|
variant('tools', default=True, description='Build tools')
|
||||||
|
|
||||||
variant('cpp14', default=True, description="Build with C++14 support")
|
variant('cpp14', default=True, description="Build with C++14 support")
|
||||||
|
|
||||||
variant('fortran', default=True, description="Build with Fortran support")
|
variant('fortran', default=True, description="Build with Fortran support")
|
||||||
@ -407,6 +410,10 @@ def cmake_args(self):
|
|||||||
|
|
||||||
options.append(self.define_from_variant(
|
options.append(self.define_from_variant(
|
||||||
'BUILD_SHARED_LIBS', 'shared'))
|
'BUILD_SHARED_LIBS', 'shared'))
|
||||||
|
options.append(self.define_from_variant(
|
||||||
|
'AXOM_ENABLE_EXAMPLES', 'examples'))
|
||||||
|
options.append(self.define_from_variant(
|
||||||
|
'AXOM_ENABLE_TOOLS', 'tools'))
|
||||||
|
|
||||||
return options
|
return options
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user