Add tools and example variants to axom (#23877)

This commit is contained in:
Chris White 2021-05-24 18:01:58 -07:00 committed by GitHub
parent 231490ce9a
commit fb2c3cce6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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