This commit is contained in:
Denis Davydov 2016-03-23 07:33:28 +01:00
parent b91a155e8d
commit b6a35716ce

View file

@ -43,6 +43,8 @@ class Trilinos(Package):
depends_on('python') # Needs py-numpy activated depends_on('python') # Needs py-numpy activated
patch('umfpack_from_suitesparse.patch')
def install(self, spec, prefix): def install(self, spec, prefix):
options = [] options = []
options.extend(std_cmake_args) options.extend(std_cmake_args)
@ -76,9 +78,11 @@ def install(self, spec, prefix):
# suite-sparse related # suite-sparse related
options.extend([ options.extend([
'-DTPL_ENABLE_Cholmod:BOOL=ON', '-DTPL_ENABLE_Cholmod:BOOL=ON',
'-DCholmod_BASE_DIR:PATH=%s' % spec['suite-sparse'].prefix, '-DCholmod_LIBRARY_DIRS=%s' % spec['suite-sparse'].prefix.lib,
'-DCholmod_INCLUDE_DIRS:PATH=%s' % spec['suite-sparse'].prefix.include,
'-DTPL_ENABLE_UMFPACK:BOOL=ON', '-DTPL_ENABLE_UMFPACK:BOOL=ON',
'-D_UMFPACK_BASE_DIR:PATH=%s' % spec['suite-sparse'].prefix, '-D_UMFPACK_LIBRARY_DIRS:PATH=%s' % spec['suite-sparse'].prefix.lib,
'-D_UMFPACK_INCLUDE_DIRS:PATH=%s' % spec['suite-sparse'].prefix.include,
'-DUMFPACK_LIBRARY_NAMES=umfpack;amd;colamd;cholmod;suitesparseconfig' '-DUMFPACK_LIBRARY_NAMES=umfpack;amd;colamd;cholmod;suitesparseconfig'
]) ])
@ -117,7 +121,7 @@ def install(self, spec, prefix):
]) ])
options.extend([ options.extend([
'-DTPL_ENABLE_SuperLUDist:BOOL=ON', '-DTPL_ENABLE_SuperLUDist:BOOL=ON',
'-DSuperLUDist_BASE_DIR:PATH=%s' % spec['superlu-dist'].prefix, '-DSuperLUDist_LIBRARY_DIRS=%s' % spec['superlu-dist'].prefix.lib,
'-DSuperLUDist_INCLUDE_DIRS=%s' % spec['superlu-dist'].prefix.include '-DSuperLUDist_INCLUDE_DIRS=%s' % spec['superlu-dist'].prefix.include
]) ])
if spec.satisfies('^superlu-dist@4.0:'): if spec.satisfies('^superlu-dist@4.0:'):