diff options
author | Chris White <white238@llnl.gov> | 2022-11-10 10:05:24 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-10 11:05:24 -0700 |
commit | 3ea4b53bf671d1d3b0ad586e1a2202c42ad0fa0c (patch) | |
tree | 0c4b2d93d4ad49d19b5387dc51fd759d031ed376 | |
parent | ad0d908d8da9b4da1e6572dd62485bd767f496f1 (diff) | |
download | spack-3ea4b53bf671d1d3b0ad586e1a2202c42ad0fa0c.tar.gz spack-3ea4b53bf671d1d3b0ad586e1a2202c42ad0fa0c.tar.bz2 spack-3ea4b53bf671d1d3b0ad586e1a2202c42ad0fa0c.tar.xz spack-3ea4b53bf671d1d3b0ad586e1a2202c42ad0fa0c.zip |
add utilities and examples variants to conduit (#33804)
-rw-r--r-- | var/spack/repos/builtin/packages/conduit/package.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/conduit/package.py b/var/spack/repos/builtin/packages/conduit/package.py index f6057b790d..59ee9e6bc3 100644 --- a/var/spack/repos/builtin/packages/conduit/package.py +++ b/var/spack/repos/builtin/packages/conduit/package.py @@ -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") @@ -376,6 +378,19 @@ class Conduit(CMakePackage): 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 ####################### if "+test" in spec: |