diff options
author | Gael Guennebaud <g.gael@free.fr> | 2012-11-05 23:21:02 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2012-11-05 23:21:02 +0100 |
commit | 959ef37006e60f68b9a9e667bf9da2e14eb0e8af (patch) | |
tree | 8a155b4bde78f1d398b71f0c9a5a51a80574c93f | |
parent | 691fb926904129c5a3884878240af5a2d92d1483 (diff) |
Fix FindUmfpack when specifying manually the related cmake variables.
-rw-r--r-- | cmake/FindUmfpack.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/FindUmfpack.cmake b/cmake/FindUmfpack.cmake index 3df3a0a94..b0cc4e9f5 100644 --- a/cmake/FindUmfpack.cmake +++ b/cmake/FindUmfpack.cmake @@ -16,6 +16,8 @@ find_path(UMFPACK_INCLUDES ufsparse ) +if(NOT UMFPACK_LIBRARIES) + find_library(UMFPACK_LIBRARIES umfpack PATHS $ENV{UMFPACKDIR} ${LIB_INSTALL_DIR}) if(UMFPACK_LIBRARIES) @@ -43,6 +45,7 @@ if(UMFPACK_LIBRARIES) endif(UMFPACK_LIBRARIES) +endif() include(FindPackageHandleStandardArgs) find_package_handle_standard_args(UMFPACK DEFAULT_MSG |