bug #493 : multiple calls to FindUmfPack

(transplanted from 1914024965
)
This commit is contained in:
Desire NUENTSA 2012-08-02 10:00:23 +02:00
parent 7d98c864ff
commit e3ac608e41

View File

@ -19,8 +19,9 @@ find_path(UMFPACK_INCLUDES
find_library(UMFPACK_LIBRARIES umfpack PATHS $ENV{UMFPACKDIR} ${LIB_INSTALL_DIR})
if(UMFPACK_LIBRARIES)
get_filename_component(UMFPACK_LIBDIR ${UMFPACK_LIBRARIES} PATH)
if (NOT UMFPACK_LIBDIR)
get_filename_component(UMFPACK_LIBDIR ${UMFPACK_LIBRARIES} PATH)
endif(NOT UMFPACK_LIBDIR)
find_library(AMD_LIBRARY amd PATHS ${UMFPACK_LIBDIR} $ENV{UMFPACKDIR} ${LIB_INSTALL_DIR})
if (AMD_LIBRARY)