diff options
author | kwryankrattiger <80296582+kwryankrattiger@users.noreply.github.com> | 2021-10-15 00:07:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-15 07:07:04 +0200 |
commit | bf5ef3b6b92e9ccf6856fd360c459ddb9b10d20f (patch) | |
tree | 4f16c02c54ff9844e135a583e31065e869ee6273 | |
parent | 7ccdae523324a0e0ad63d2e7456c4c815b8ac71f (diff) | |
download | spack-bf5ef3b6b92e9ccf6856fd360c459ddb9b10d20f.tar.gz spack-bf5ef3b6b92e9ccf6856fd360c459ddb9b10d20f.tar.bz2 spack-bf5ef3b6b92e9ccf6856fd360c459ddb9b10d20f.tar.xz spack-bf5ef3b6b92e9ccf6856fd360c459ddb9b10d20f.zip |
paraview: add adios2 variant (#26728)
-rw-r--r-- | var/spack/repos/builtin/packages/paraview/package.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/paraview/package.py b/var/spack/repos/builtin/packages/paraview/package.py index eb5c8b818a..93f7aca922 100644 --- a/var/spack/repos/builtin/packages/paraview/package.py +++ b/var/spack/repos/builtin/packages/paraview/package.py @@ -56,6 +56,7 @@ class Paraview(CMakePackage, CudaPackage): description='Builds a shared version of the library') variant('kits', default=True, description='Use module kits') + variant('adios2', default=False, description='Enable ADIOS2 support') variant('advanced_debug', default=False, description="Enable all other debug flags beside build_type, such as VTK_DEBUG_LEAK") @@ -129,6 +130,7 @@ class Paraview(CMakePackage, CudaPackage): # depends_on('hdf5~mpi', when='~mpi') depends_on('hdf5+hl+mpi', when='+hdf5+mpi') depends_on('hdf5+hl~mpi', when='+hdf5~mpi') + depends_on('adios2', when='+adios2') depends_on('jpeg') depends_on('jsoncpp') depends_on('libogg') @@ -336,6 +338,11 @@ class Paraview(CMakePackage, CudaPackage): '-DVTK_USE_SYSTEM_XDMF2:BOOL=OFF', '-DVTK_USE_SYSTEM_XDMF3:BOOL=OFF']) + if '+adios2' in spec: + cmake_args.extend([ + '-DPARAVIEW_ENABLE_ADIOS2:BOOL=ON' + ]) + # The assumed qt version changed to QT5 (as of paraview 5.2.1), # so explicitly specify which QT major version is actually being used if '+qt' in spec: |