summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/trilinos/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/trilinos/package.py')
-rw-r--r--var/spack/repos/builtin/packages/trilinos/package.py21
1 files changed, 19 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/trilinos/package.py b/var/spack/repos/builtin/packages/trilinos/package.py
index bc85b314f3..23c05cb054 100644
--- a/var/spack/repos/builtin/packages/trilinos/package.py
+++ b/var/spack/repos/builtin/packages/trilinos/package.py
@@ -81,8 +81,6 @@ class Trilinos(CMakePackage):
description='Compile with Boost')
variant('cgns', default=False,
description='Enable CGNS')
- variant('exodus', default=True,
- description='Compile with Exodus from SEACAS')
variant('gtest', default=True,
description='Compile with Gtest')
variant('hdf5', default=True,
@@ -119,10 +117,17 @@ class Trilinos(CMakePackage):
description='Compile with Aztec')
variant('belos', default=True,
description='Compile with Belos')
+ # chaco is disabled by default. As of 12.14.1 libchaco.so
+ # has the global symbol divide (and maybe others) that can
+ # lead to symbol clash.
+ variant('chaco', default=False,
+ description='Compile with Chaco from SEACAS')
variant('epetra', default=True,
description='Compile with Epetra')
variant('epetraext', default=True,
description='Compile with EpetraExt')
+ variant('exodus', default=True,
+ description='Compile with Exodus from SEACAS')
variant('ifpack', default=True,
description='Compile with Ifpack')
variant('ifpack2', default=True,
@@ -480,6 +485,18 @@ class Trilinos(CMakePackage):
'-DTrilinos_ENABLE_SEACASExodus:BOOL=OFF'
])
+ if '+chaco' in spec:
+ options.extend([
+ '-DTrilinos_ENABLE_SEACAS:BOOL=ON'
+ '-DTrilinos_ENABLE_SEACASChaco:BOOL=ON'
+ ])
+ else:
+ # don't disable SEACAS, could be needed elsewhere
+ options.extend([
+ '-DTrilinos_ENABLE_SEACASChaco:BOOL=OFF',
+ '-DTrilinos_ENABLE_SEACASNemslice=OFF'
+ ])
+
# ######################### TPLs #############################
blas = spec['blas'].libs