Trilinos: add DTK external package (#4304)
* trilinos: add DTK external package * Making +dtk and ~tpetra conflict
This commit is contained in:
parent
12ab882eba
commit
8e9d905794
@ -87,14 +87,23 @@ class Trilinos(CMakePackage):
|
|||||||
description='Enables the build of shared libraries')
|
description='Enables the build of shared libraries')
|
||||||
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('tpetra', default=True, description='Compile with Tpetra')
|
variant('tpetra', default=True, description='Compile with Tpetra')
|
||||||
variant('exodus', default=False, description='Compile with Exodus from SEACAS')
|
variant('exodus', default=False, description='Compile with Exodus from SEACAS')
|
||||||
|
|
||||||
|
variant('dtk', default=False, description='Enable DataTransferKit')
|
||||||
|
resource(name='dtk',
|
||||||
|
git='https://github.com/ornl-cees/DataTransferKit',
|
||||||
|
tag='master',
|
||||||
|
placement='DataTransferKit',
|
||||||
|
when='+dtk')
|
||||||
|
conflicts('+dtk', when='~tpetra')
|
||||||
|
|
||||||
# Everything should be compiled with -fpic
|
# Everything should be compiled with -fpic
|
||||||
depends_on('blas')
|
depends_on('blas')
|
||||||
depends_on('lapack')
|
depends_on('lapack')
|
||||||
depends_on('boost', when='+boost')
|
depends_on('boost', when='+boost')
|
||||||
|
depends_on('boost', when='+dtk')
|
||||||
depends_on('matio')
|
depends_on('matio')
|
||||||
depends_on('glm')
|
depends_on('glm')
|
||||||
depends_on('metis@5:', when='+metis')
|
depends_on('metis@5:', when='+metis')
|
||||||
@ -386,6 +395,13 @@ def cmake_args(self):
|
|||||||
'-DTrilinos_ENABLE_STK=OFF'
|
'-DTrilinos_ENABLE_STK=OFF'
|
||||||
])
|
])
|
||||||
|
|
||||||
|
if '+dtk' in spec:
|
||||||
|
options.extend([
|
||||||
|
'-DTrilinos_EXTRA_REPOSITORIES:STRING=DataTransferKit',
|
||||||
|
'-DTpetra_INST_INT_UNSIGNED_LONG:BOOL=ON',
|
||||||
|
'-DTrilinos_ENABLE_DataTransferKit:BOOL=ON'
|
||||||
|
])
|
||||||
|
|
||||||
# exodus
|
# exodus
|
||||||
if '+exodus' in spec:
|
if '+exodus' in spec:
|
||||||
options.extend([
|
options.extend([
|
||||||
|
Loading…
Reference in New Issue
Block a user