From 3ea4b53bf671d1d3b0ad586e1a2202c42ad0fa0c Mon Sep 17 00:00:00 2001 From: Chris White Date: Thu, 10 Nov 2022 10:05:24 -0800 Subject: add utilities and examples variants to conduit (#33804) --- var/spack/repos/builtin/packages/conduit/package.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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") @@ -375,6 +377,19 @@ class Conduit(CMakePackage): 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 ####################### -- cgit v1.2.3-70-g09d2