This commit is contained in:
Denis Davydov 2016-03-23 09:16:51 +01:00
parent 50e4b609c6
commit 2fb599ea86

View File

@ -55,7 +55,7 @@ def install(self, spec, prefix):
'-DTrilinos_VERBOSE_CONFIGURE:BOOL=OFF',
'-DTrilinos_ENABLE_TESTS:BOOL=OFF',
'-DTrilinos_ENABLE_EXAMPLES:BOOL=OFF',
'-DCMAKE_BUILD_TYPE:STRING=%s' % ('Debug' if '+debug' in spec else 'Release'),
'-DCMAKE_BUILD_TYPE:STRING=%s' % ('DEBUG' if '+debug' in spec else 'RELEASE'),
'-DBUILD_SHARED_LIBS:BOOL=%s' % ('ON' if '+shared' in spec else 'OFF'),
'-DTPL_ENABLE_MPI:BOOL=ON',
'-DMPI_BASE_DIR:PATH=%s' % spec['mpi'].prefix,
@ -83,6 +83,11 @@ def install(self, spec, prefix):
'-DTrilinos_EXTRA_LINK_FLAGS:STRING=-lgfortran'
])
# for build-debug only:
options.extend([
'-DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE'
])
# suite-sparse related
options.extend([
'-DTPL_ENABLE_Cholmod:BOOL=OFF', # FIXME: Trilinos seems to be looking for static libs only, patch CMake TPL file?