From d221ed51cee7e10266f1f4672a55716107d9a84d Mon Sep 17 00:00:00 2001 From: maier Date: Sun, 24 Mar 2013 16:44:46 +0000 Subject: [PATCH] CMake: Add librt.so to the link interface of UMFPACK to avoid an underlinkage problem. git-svn-id: https://svn.dealii.org/trunk@29016 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/cmake/modules/FindUMFPACK.cmake | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/deal.II/cmake/modules/FindUMFPACK.cmake b/deal.II/cmake/modules/FindUMFPACK.cmake index 6029fe6d4a..55bac51302 100644 --- a/deal.II/cmake/modules/FindUMFPACK.cmake +++ b/deal.II/cmake/modules/FindUMFPACK.cmake @@ -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} -- 2.39.5