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
This commit is contained in:
jfavre 2024-03-03 02:55:46 +01:00 committed by GitHub
parent aed5c39312
commit 9ca6aaeafd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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