aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake/FindSuperLU.cmake
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2008-11-05 13:47:55 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2008-11-05 13:47:55 +0000
commit86ccd99d8d9a87d03f2f327766a02cc13849b54d (patch)
tree38dc0f0ad8253bc14d8b939d6e0f6f5cef440433 /cmake/FindSuperLU.cmake
parent9aba671cfc9d25357f74ba3811e182b8937e0d09 (diff)
Several improvements in sparse module:
* add a LDL^T factorization with solver using code from T. Davis's LDL library (LPGL2.1+) * various bug fixes in trianfular solver, matrix product, etc. * improve cmake files for the supported libraries * split the sparse unit test * etc.
Diffstat (limited to 'cmake/FindSuperLU.cmake')
-rw-r--r--cmake/FindSuperLU.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/FindSuperLU.cmake b/cmake/FindSuperLU.cmake
index 9d12ebd77..7383754e2 100644
--- a/cmake/FindSuperLU.cmake
+++ b/cmake/FindSuperLU.cmake
@@ -13,6 +13,10 @@ find_path(SUPERLU_INCLUDES
find_library(SUPERLU_LIBRARIES superlu PATHS $ENV{SUPERLUDIR} ${LIB_INSTALL_DIR})
+if(SUPERLU_LIBRARIES AND CMAKE_COMPILER_IS_GNUCXX)
+ set(SUPERLU_LIBRARIES ${SUPERLU_LIBRARIES} -lgfortran)
+endif(SUPERLU_LIBRARIES AND CMAKE_COMPILER_IS_GNUCXX)
+
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(SUPERLU DEFAULT_MSG
SUPERLU_INCLUDES SUPERLU_LIBRARIES)