From: Marc Fehling Date: Wed, 8 Jan 2020 16:38:02 +0000 (+0100) Subject: CMake: Check for third party libraries of trilinos. X-Git-Tag: v9.2.0-rc1~703^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53dfac0de2244f1d7db57c2dde7d6e8185c9b54b;p=dealii.git CMake: Check for third party libraries of trilinos. --- diff --git a/cmake/configure/configure_2_trilinos.cmake b/cmake/configure/configure_2_trilinos.cmake index 4b937b6649..0329a9ce9d 100644 --- a/cmake/configure/configure_2_trilinos.cmake +++ b/cmake/configure/configure_2_trilinos.cmake @@ -164,16 +164,36 @@ MACRO(FEATURE_TRILINOS_FIND_EXTERNAL var) CHECK_MPI_INTERFACE(TRILINOS ${var}) + # + # Check which optional features of trilinos are installed. + # IF (${var}) + # + # Check for modules. + # FOREACH(_optional_module EpetraExt ROL Sacado Tpetra Zoltan) - ITEM_MATCHES(_module_found ${_optional_module} ${Trilinos_PACKAGE_LIST}) - IF(_module_found) + ITEM_MATCHES(_module_found ${_optional_module} ${Trilinos_PACKAGE_LIST}) + IF(_module_found) MESSAGE(STATUS "Found ${_optional_module}") STRING(TOUPPER "${_optional_module}" _optional_module_upper) SET(DEAL_II_TRILINOS_WITH_${_optional_module_upper} ON) - ELSE() + ELSE() MESSAGE(STATUS "Module ${_optional_module} not found!") - ENDIF() + ENDIF() + ENDFOREACH() + + # + # Check for third-party libraries (tpl). + # + FOREACH(_optional_tpl MUMPS) + ITEM_MATCHES(_tpl_found ${_optional_tpl} ${Trilinos_TPL_LIST}) + IF(_tpl_found) + MESSAGE(STATUS "Found ${_optional_tpl}") + STRING(TOUPPER "${_optional_tpl}" _optional_tpl_upper) + SET(DEAL_II_TRILINOS_WITH_${_optional_tpl_upper} ON) + ELSE() + MESSAGE(STATUS "Module ${_optional_tpl} not found!") + ENDIF() ENDFOREACH() ENDIF()