]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Add LAPACK/BLAS to the link interface of p4est
authorMatthias Maier <tamiko@kyomu.43-1.org>
Fri, 12 Jul 2013 14:33:56 +0000 (14:33 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Fri, 12 Jul 2013 14:33:56 +0000 (14:33 +0000)
git-svn-id: https://svn.dealii.org/trunk@29985 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/configure/configure_1_lapack.cmake
deal.II/cmake/modules/FindP4EST.cmake

index 04ddb713585eab98f433f1d42f6a430a142789ca..178fe501d28e7c5baa6ca12d6b5d27ed79c1bb8c 100644 (file)
@@ -37,26 +37,25 @@ MACRO(FEATURE_LAPACK_FIND_EXTERNAL var)
     LIST(APPEND LAPACK_LIBRARIES ${BLAS_LIBRARIES})
   ENDIF()
 
-  #
-  # Well, in case of static archives we have to manually pick up the
-  # complete link interface. *sigh*
-  #
-  # Do this unconditionally for the most common case:
-  # TODO: Non-GNU setups...
-  #
-  FOREACH(_lib gfortran m quadmath)
-    FIND_LIBRARY(${_lib}_lib
-      NAMES ${_lib}
-      HINTS ${CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES})
-    MARK_AS_ADVANCED(${_lib}_lib)
-
-    IF(NOT ${_lib}_lib MATCHES "-NOTFOUND")
-      LIST(APPEND LAPACK_LIBRARIES ${${_lib}_lib})
-    ENDIF()
-  ENDFOREACH()
-
-
   IF(LAPACK_FOUND)
+    #
+    # Well, in case of static archives we have to manually pick up the
+    # complete link interface. *sigh*
+    #
+    # Do this unconditionally for the most common case:
+    # TODO: Non-GNU setups...
+    #
+    FOREACH(_lib gfortran m quadmath)
+      FIND_LIBRARY(${_lib}_lib
+        NAMES ${_lib}
+        HINTS ${CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES})
+      MARK_AS_ADVANCED(${_lib}_lib)
+
+      IF(NOT ${_lib}_lib MATCHES "-NOTFOUND")
+        LIST(APPEND LAPACK_LIBRARIES ${${_lib}_lib})
+      ENDIF()
+    ENDFOREACH()
+
     MARK_AS_ADVANCED(
       atlas_LIBRARY
       blas_LIBRARY
index 1ea765df015ad72ef935f40127229bf1767f7258..bdbb8ad4c217405f746ef712a98b02a0b68c73b5 100644 (file)
@@ -93,6 +93,7 @@ IF(P4EST_FOUND)
   SET(P4EST_LIBRARIES
     ${P4EST_LIBRARY}
     ${SC_LIBRARY}
+    ${LAPACK_LIBRARIES} # for good measure
     ${MPI_C_LIBRARIES} # for good measure
     )
   SET(P4EST_INCLUDE_DIRS

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.