trilinos: allow to compile exodus (#3857)
This commit is contained in:
parent
1d514f48bc
commit
fdc8f71a5c
@ -86,6 +86,7 @@ class Trilinos(CMakePackage):
|
|||||||
variant('debug', default=False,
|
variant('debug', default=False,
|
||||||
description='Builds a debug version of the libraries')
|
description='Builds a debug version of the libraries')
|
||||||
variant('boost', default=True, description='Compile with Boost')
|
variant('boost', default=True, description='Compile with Boost')
|
||||||
|
variant('exodus', default=False, description='Compile with Exodus from SEACAS')
|
||||||
|
|
||||||
# Everything should be compiled with -fpic
|
# Everything should be compiled with -fpic
|
||||||
depends_on('blas')
|
depends_on('blas')
|
||||||
@ -371,11 +372,20 @@ def cmake_args(self):
|
|||||||
|
|
||||||
# disable due to compiler / config errors:
|
# disable due to compiler / config errors:
|
||||||
options.extend([
|
options.extend([
|
||||||
'-DTrilinos_ENABLE_SEACAS=OFF',
|
|
||||||
'-DTrilinos_ENABLE_Pike=OFF',
|
'-DTrilinos_ENABLE_Pike=OFF',
|
||||||
'-DTrilinos_ENABLE_STK=OFF'
|
'-DTrilinos_ENABLE_STK=OFF'
|
||||||
])
|
])
|
||||||
|
|
||||||
|
# exodus
|
||||||
|
if '+exodus' in spec:
|
||||||
|
options.extend([
|
||||||
|
'-DTrilinos_ENABLE_SEACAS:BOOL=ON'
|
||||||
|
])
|
||||||
|
else:
|
||||||
|
options.extend([
|
||||||
|
'-DTrilinos_ENABLE_SEACAS:BOOL=OFF'
|
||||||
|
])
|
||||||
|
|
||||||
# disable due to compiler / config errors:
|
# disable due to compiler / config errors:
|
||||||
if spec.satisfies('%xl') or spec.satisfies('%xl_r'):
|
if spec.satisfies('%xl') or spec.satisfies('%xl_r'):
|
||||||
options.extend([
|
options.extend([
|
||||||
|
Loading…
Reference in New Issue
Block a user