have trilinos search for static libraries first when not using shared variant (#2896)

This commit is contained in:
Jason Sarich 2017-01-23 12:24:21 -06:00 committed by becker33
parent 162be154d2
commit 3686d0ceb3

View File

@ -157,6 +157,10 @@ def cmake_args(self):
'DEBUG' if '+debug' in spec else 'RELEASE'),
'-DBUILD_SHARED_LIBS:BOOL=%s' % (
'ON' if '+shared' in spec else 'OFF'),
'-DTPL_FIND_SHARED_LIBS:BOOL=%s' % (
'ON' if '+shared' in spec else 'OFF'),
'-DTrilinos_LINK_SEARCH_START_STATIC:BOOL=%s' % (
'OFF' if '+shared' in spec else 'ON'),
'-DTPL_ENABLE_MPI:BOOL=ON',
'-DMPI_BASE_DIR:PATH=%s' % spec['mpi'].prefix,
'-DTPL_ENABLE_BLAS=ON',