From 9ca6aaeafd52d72da3f9a52dc1ef0053237ff673 Mon Sep 17 00:00:00 2001 From: jfavre Date: Sun, 3 Mar 2024 02:55:46 +0100 Subject: [PATCH] libcatalyst: add fortran & python variants (#42941) * Update package.py Adding two variants 'fortran' and 'python' to enable language wrappings * Update package.py remove extra space --- var/spack/repos/builtin/packages/libcatalyst/package.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/var/spack/repos/builtin/packages/libcatalyst/package.py b/var/spack/repos/builtin/packages/libcatalyst/package.py index 323542444d..c8539816bb 100644 --- a/var/spack/repos/builtin/packages/libcatalyst/package.py +++ b/var/spack/repos/builtin/packages/libcatalyst/package.py @@ -26,6 +26,8 @@ class Libcatalyst(CMakePackage): variant("mpi", default=False, description="Enable MPI support") variant("conduit", default=False, description="Use external Conduit for Catalyst") + variant("fortran", default=False, description="Enable Fortran wrapping") + variant("python", default=False, description="Enable Python wrapping") depends_on("mpi", when="+mpi") depends_on("conduit", when="+conduit") @@ -37,6 +39,8 @@ def cmake_args(self): "-DCATALYST_BUILD_TESTING=OFF", self.define_from_variant("CATALYST_USE_MPI", "mpi"), self.define_from_variant("CATALYST_WITH_EXTERNAL_CONDUIT", "conduit"), + self.define_from_variant("CATALYST_WRAP_FORTRAN", "fortran"), + self.define_from_variant("CATALYST_WRAP_PYTHON", "python"), ] return args