aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake/FindSPQR.cmake
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2015-11-05 12:05:02 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2015-11-05 12:05:02 +0100
commit2844e7ae43553731c433ec1d331b3accc2027b48 (patch)
tree6af5e56b6918d562f941118f5dcc2b48aaa7c2e9 /cmake/FindSPQR.cmake
parent780eeb3be779ea3fd6065f283278793ac7557287 (diff)
SPQR and UmfPack need to link to cholmod.
Diffstat (limited to 'cmake/FindSPQR.cmake')
-rw-r--r--cmake/FindSPQR.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmake/FindSPQR.cmake b/cmake/FindSPQR.cmake
index 794c212af..1e958c3c1 100644
--- a/cmake/FindSPQR.cmake
+++ b/cmake/FindSPQR.cmake
@@ -26,7 +26,12 @@ if(SPQR_LIBRARIES)
find_library(SUITESPARSE_LIBRARY SuiteSparse PATHS $ENV{SPQRDIR} ${LIB_INSTALL_DIR})
if (SUITESPARSE_LIBRARY)
set(SPQR_LIBRARIES ${SPQR_LIBRARIES} ${SUITESPARSE_LIBRARY})
- endif (SUITESPARSE_LIBRARY)
+ endif()
+
+ find_library(CHOLMOD_LIBRARY cholmod PATHS $ENV{UMFPACK_LIBDIR} $ENV{UMFPACKDIR} ${LIB_INSTALL_DIR})
+ if(CHOLMOD_LIBRARY)
+ set(SPQR_LIBRARIES ${SPQR_LIBRARIES} ${CHOLMOD_LIBRARY})
+ endif()
endif(SPQR_LIBRARIES)