Add tools and example variants to axom (#23877)
This commit is contained in:
parent
231490ce9a
commit
fb2c3cce6d
1 changed files with 7 additions and 0 deletions
|
@ -57,6 +57,9 @@ class Axom(CachedCMakePackage, CudaPackage):
|
|||
variant('debug', default=False,
|
||||
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('fortran', default=True, description="Build with Fortran support")
|
||||
|
@ -407,6 +410,10 @@ def cmake_args(self):
|
|||
|
||||
options.append(self.define_from_variant(
|
||||
'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
|
||||
|
||||
|
|
Loading…
Reference in a new issue