diff options
Diffstat (limited to 'var')
-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: |