# The user has to know the location of the trilinos headers as well:
LIST(APPEND DEAL_II_USER_INCLUDE_DIRS ${TRILINOS_INCLUDE_DIRS})
- LIST(APPEND DEAL_II_EXTERNAL_LIBRARIES
- # The Trilinos libraries:
- ${TRILINOS_LIBRARIES}
- # All external libraries necessary for the Trilinos libraries. Nice and
- # easy :-)
- ${Trilinos_TPL_LIBRARIES}
- )
+ LIST(APPEND DEAL_II_EXTERNAL_LIBRARIES ${TRILINOS_LIBRARIES})
SET(DEAL_II_EXPAND_TRILINOS_VECTOR "TrilinosWrappers::Vector")
SET(DEAL_II_EXPAND_TRILINOS_BLOCKVECTOR "TrilinosWrappers::BlockVector")
UNSET(TRILINOS_LIBRARY_${_library} CACHE)
ENDFOREACH()
+#
+# Add the link interface:
+#
+LIST(APPEND TRILINOS_LIBRARIES
+ ${Trilinos_TPL_LIBRARIES}
+ ${MPI_CXX_LIBRARIES} # for good measure
+ )
+
FIND_PACKAGE_HANDLE_STANDARD_ARGS(TRILINOS DEFAULT_MSG
TRILINOS_LIBRARIES # cosmetic: Gives nice output
TRILINOS_CONFIG_FOUND
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams