diff options
author | jeffmauldin <mauldinjeff@gmail.com> | 2024-09-13 05:36:49 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-13 05:36:49 -0600 |
commit | e3c5d5817b02d91cdfacf0c2e939851956f5179a (patch) | |
tree | bc6ecbe8bbec384e46e2e66d706be4c6a2b9f7ca | |
parent | 7573ea2ae5d0e772b82263d5543ab0f9551dfb35 (diff) | |
download | spack-e3c5d5817b02d91cdfacf0c2e939851956f5179a.tar.gz spack-e3c5d5817b02d91cdfacf0c2e939851956f5179a.tar.bz2 spack-e3c5d5817b02d91cdfacf0c2e939851956f5179a.tar.xz spack-e3c5d5817b02d91cdfacf0c2e939851956f5179a.zip |
Seacas add libcatalyst variant 2 (#46339)
* Update seacas package.py
Adding libcatalyst variant to seacas package
When seacas is installed with "seacas +libcatalyst"
then a dependency on the spack package "libcatalyst"
(which is catalyst api 2 from kitware) is added, and
the appropriage cmake variable for the catalyst TPL
is set. The mpi variant option in catalyst (i.e. build
with mpi or build without mpi) is passed on to
libcatalyst. The default of the libcatalyst variant
is false/off, so if seacas is installed without the
"+libcatalyst" in the spec it will behave exactly as
it did before the introduction of this variant.
* shortened line 202 to comply with < 100 characters per line style requirement
-rw-r--r-- | var/spack/repos/builtin/packages/seacas/package.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/seacas/package.py b/var/spack/repos/builtin/packages/seacas/package.py index 7bcdc21736..a222024541 100644 --- a/var/spack/repos/builtin/packages/seacas/package.py +++ b/var/spack/repos/builtin/packages/seacas/package.py @@ -197,6 +197,11 @@ class Seacas(CMakePackage): description="Enable Faodel. See https://github.com/sandialabs/faodel", ) variant( + "libcatalyst", + default=False, + description="Enable libcatalyst tpl (catalyst api 2); Kitware insitu library", + ) + variant( "matio", default=True, description="Compile with matio (MatLab) support." @@ -262,6 +267,10 @@ class Seacas(CMakePackage): depends_on("catch2@3:", when="@2024-03-11:+tests") depends_on("matio", when="+matio") + + depends_on("libcatalyst+mpi~python", when="+libcatalyst+mpi") + depends_on("libcatalyst~mpi~python", when="+libcatalyst~mpi") + depends_on("libx11", when="+x11") with when("+cgns"): @@ -481,6 +490,9 @@ class Seacas(CMakePackage): if "+adios2" in spec: options.append(define("ADIOS2_ROOT", spec["adios2"].prefix)) + if "+libcatalyst" in spec: + options.append(define("TPL_ENABLE_Catalyst2", "ON")) + # ################# RPath Handling ###################### if sys.platform == "darwin" and macos_version() >= Version("10.12"): # use @rpath on Sierra due to limit of dynamic loader |