]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
CMake: Add librt.so to the link interface of UMFPACK to avoid an underlinkage problem.
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 24 Mar 2013 16:44:46 +0000 (16:44 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 24 Mar 2013 16:44:46 +0000 (16:44 +0000)
git-svn-id: https://svn.dealii.org/trunk@29016 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/modules/FindUMFPACK.cmake

index 6029fe6d4a299bf912ba900aca59da6beb53536d..55bac51302c119206bb8867b1cf5cba5a450f2d1 100644 (file)
@@ -105,7 +105,6 @@ FIND_UMFPACK_LIBRARY(CHOLMOD cholmod)
 FIND_UMFPACK_LIBRARY(COLAMD colamd)
 FIND_UMFPACK_LIBRARY(SuiteSparse_config suitesparseconfig)
 
-
 SET(_output ${UMFPACK_LIBRARY} ${CHOLMOD_LIBRARY} ${COLAMD_LIBRARY} ${AMD_LIBRARY} ${SuiteSparse_config_LIBRARY})
 FIND_PACKAGE_HANDLE_STANDARD_ARGS(UMFPACK DEFAULT_MSG
   _output # Cosmetic: Gives nice output
@@ -127,6 +126,16 @@ IF(UMFPACK_FOUND)
     ${SuiteSparse_config_LIBRARY}
     ${LAPACK_LIBRARIES}
     )
+
+  #
+  # Add rt to the link interface as well:
+  #
+  FIND_LIBRARY(rt_lib NAMES rt)
+  MARK_AS_ADVANCED(rt_lib)
+  IF(NOT rt_lib MATCHES "-NOTFOUND")
+    LIST(APPEND UMFPACK_LIBRARIES ${rt_lib})
+  ENDIF()
+
   SET(UMFPACK_INCLUDE_DIRS
     ${UMFPACK_INCLUDE_DIR}
     ${AMD_INCLUDE_DIR}

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.