add utilities and examples variants to conduit (#33804)
This commit is contained in:
parent
ad0d908d8d
commit
3ea4b53bf6
1 changed files with 15 additions and 0 deletions
|
@ -67,8 +67,10 @@ class Conduit(CMakePackage):
|
|||
# package variants
|
||||
###########################################################################
|
||||
|
||||
variant("examples", default=True, description="Build Conduit examples")
|
||||
variant("shared", default=True, description="Build Conduit as shared libs")
|
||||
variant("test", default=True, description="Enable Conduit unit tests")
|
||||
variant("utilities", default=True, description="Build Conduit utilities")
|
||||
|
||||
# variants for python support
|
||||
variant("python", default=False, description="Build Conduit Python support")
|
||||
|
@ -375,6 +377,19 @@ def hostconfig(self):
|
|||
if flags:
|
||||
cfg.write(cmake_cache_entry("BLT_EXE_LINKER_FLAGS", flags, description))
|
||||
|
||||
#######################
|
||||
# Examples/Utilities
|
||||
#######################
|
||||
if "+examples" in spec:
|
||||
cfg.write(cmake_cache_entry("ENABLE_EXAMPLES", "ON"))
|
||||
else:
|
||||
cfg.write(cmake_cache_entry("ENABLE_EXAMPLES", "OFF"))
|
||||
|
||||
if "+utilities" in spec:
|
||||
cfg.write(cmake_cache_entry("ENABLE_UTILS", "ON"))
|
||||
else:
|
||||
cfg.write(cmake_cache_entry("ENABLE_UTILS", "OFF"))
|
||||
|
||||
#######################
|
||||
# Unit Tests
|
||||
#######################
|
||||
|
|
Loading…
Reference in a new issue