]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Also populate TRILINOS_LINKER_FLAGS 7231/head
authorMatthias Maier <tamiko@43-1.org>
Wed, 26 Sep 2018 07:21:33 +0000 (02:21 -0500)
committerMatthias Maier <tamiko@43-1.org>
Wed, 26 Sep 2018 07:21:33 +0000 (02:21 -0500)
In case we pick up a trilinos installation where
  Trilinos_EXTRA_LD_FLAGS
we have to make sure to include these flags on our final link line as
well.

Closes #7226

cmake/modules/FindTRILINOS.cmake

index a0021b33986c69ac97c7bd822db3f1fceb6789db..c1f42bf3e55d3fc70609425e546bea5df956873a 100644 (file)
@@ -21,6 +21,7 @@
 #   TRILINOS_DIR
 #   TRILINOS_INCLUDE_DIRS
 #   TRILINOS_LIBRARIES
+#   TRILINOS_LINKER_FLAGS
 #   TRILINOS_VERSION
 #   TRILINOS_VERSION_MAJOR
 #   TRILINOS_VERSION_MINOR
@@ -158,6 +159,8 @@ DEAL_II_PACKAGE_HANDLE(TRILINOS
   USER_INCLUDE_DIRS
     REQUIRED Trilinos_INCLUDE_DIRS
     OPTIONAL Trilinos_TPL_INCLUDE_DIRS
+  LINKER_FLAGS
+    OPTIONAL Trilinos_EXTRA_LD_FLAGS
   CLEAR
     TRILINOS_CONFIG_DIR EPETRA_CONFIG_H SACADO_CMATH_HPP ${_libraries}
     SACADO_CONFIG_H

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


Typeset in Trocchi and Trocchi Bold Sans Serif.