mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-13 18:03:13 +08:00
it is now up to user of these Find* module to find and link to BLAS and/or LAPACK
This commit is contained in:
parent
3345ea0ddd
commit
d8ca948148
@ -1,3 +1,5 @@
|
|||||||
|
# Cholmod lib usually requires linking to a blas and lapack library.
|
||||||
|
# It is up to the user of this module to find a BLAS and link to it.
|
||||||
|
|
||||||
if (CHOLMOD_INCLUDES AND CHOLMOD_LIBRARIES)
|
if (CHOLMOD_INCLUDES AND CHOLMOD_LIBRARIES)
|
||||||
set(CHOLMOD_FIND_QUIETLY TRUE)
|
set(CHOLMOD_FIND_QUIETLY TRUE)
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
|
|
||||||
|
# Umfpack lib usually requires linking to a blas library.
|
||||||
|
# It is up to the user of this module to find a BLAS and link to it.
|
||||||
|
|
||||||
if (SUPERLU_INCLUDES AND SUPERLU_LIBRARIES)
|
if (SUPERLU_INCLUDES AND SUPERLU_LIBRARIES)
|
||||||
set(SUPERLU_FIND_QUIETLY TRUE)
|
set(SUPERLU_FIND_QUIETLY TRUE)
|
||||||
endif (SUPERLU_INCLUDES AND SUPERLU_LIBRARIES)
|
endif (SUPERLU_INCLUDES AND SUPERLU_LIBRARIES)
|
||||||
|
|
||||||
find_package(BLAS)
|
find_path(SUPERLU_INCLUDES
|
||||||
|
|
||||||
if(BLAS_FOUND)
|
|
||||||
|
|
||||||
find_path(SUPERLU_INCLUDES
|
|
||||||
NAMES
|
NAMES
|
||||||
supermatrix.h
|
supermatrix.h
|
||||||
PATHS
|
PATHS
|
||||||
@ -15,15 +14,9 @@ if(BLAS_FOUND)
|
|||||||
${INCLUDE_INSTALL_DIR}
|
${INCLUDE_INSTALL_DIR}
|
||||||
PATH_SUFFIXES
|
PATH_SUFFIXES
|
||||||
superlu
|
superlu
|
||||||
)
|
)
|
||||||
|
|
||||||
find_library(SUPERLU_LIBRARIES superlu PATHS $ENV{SUPERLUDIR} ${LIB_INSTALL_DIR})
|
find_library(SUPERLU_LIBRARIES superlu PATHS $ENV{SUPERLUDIR} ${LIB_INSTALL_DIR})
|
||||||
|
|
||||||
if(SUPERLU_LIBRARIES)
|
|
||||||
set(SUPERLU_LIBRARIES ${SUPERLU_LIBRARIES} ${BLAS_LIBRARIES})
|
|
||||||
endif(SUPERLU_LIBRARIES)
|
|
||||||
|
|
||||||
endif(BLAS_FOUND)
|
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include(FindPackageHandleStandardArgs)
|
||||||
find_package_handle_standard_args(SUPERLU DEFAULT_MSG
|
find_package_handle_standard_args(SUPERLU DEFAULT_MSG
|
||||||
|
@ -1,13 +1,11 @@
|
|||||||
|
# Umfpack lib usually requires linking to a blas library.
|
||||||
|
# It is up to the user of this module to find a BLAS and link to it.
|
||||||
|
|
||||||
if (UMFPACK_INCLUDES AND UMFPACK_LIBRARIES)
|
if (UMFPACK_INCLUDES AND UMFPACK_LIBRARIES)
|
||||||
set(UMFPACK_FIND_QUIETLY TRUE)
|
set(UMFPACK_FIND_QUIETLY TRUE)
|
||||||
endif (UMFPACK_INCLUDES AND UMFPACK_LIBRARIES)
|
endif (UMFPACK_INCLUDES AND UMFPACK_LIBRARIES)
|
||||||
|
|
||||||
find_package(BLAS)
|
find_path(UMFPACK_INCLUDES
|
||||||
|
|
||||||
if(BLAS_FOUND)
|
|
||||||
|
|
||||||
find_path(UMFPACK_INCLUDES
|
|
||||||
NAMES
|
NAMES
|
||||||
umfpack.h
|
umfpack.h
|
||||||
PATHS
|
PATHS
|
||||||
@ -15,11 +13,11 @@ if(BLAS_FOUND)
|
|||||||
${INCLUDE_INSTALL_DIR}
|
${INCLUDE_INSTALL_DIR}
|
||||||
PATH_SUFFIXES
|
PATH_SUFFIXES
|
||||||
suitesparse
|
suitesparse
|
||||||
)
|
)
|
||||||
|
|
||||||
find_library(UMFPACK_LIBRARIES umfpack PATHS $ENV{UMFPACKDIR} ${LIB_INSTALL_DIR})
|
find_library(UMFPACK_LIBRARIES umfpack PATHS $ENV{UMFPACKDIR} ${LIB_INSTALL_DIR})
|
||||||
|
|
||||||
if(UMFPACK_LIBRARIES)
|
if(UMFPACK_LIBRARIES)
|
||||||
|
|
||||||
get_filename_component(UMFPACK_LIBDIR ${UMFPACK_LIBRARIES} PATH)
|
get_filename_component(UMFPACK_LIBDIR ${UMFPACK_LIBRARIES} PATH)
|
||||||
|
|
||||||
@ -30,9 +28,9 @@ if(BLAS_FOUND)
|
|||||||
# set(UMFPACK_LIBRARIES FALSE)
|
# set(UMFPACK_LIBRARIES FALSE)
|
||||||
endif (AMD_LIBRARY)
|
endif (AMD_LIBRARY)
|
||||||
|
|
||||||
endif(UMFPACK_LIBRARIES)
|
endif(UMFPACK_LIBRARIES)
|
||||||
|
|
||||||
if(UMFPACK_LIBRARIES)
|
if(UMFPACK_LIBRARIES)
|
||||||
|
|
||||||
find_library(COLAMD_LIBRARY colamd PATHS ${UMFPACK_LIBDIR} $ENV{UMFPACKDIR} ${LIB_INSTALL_DIR})
|
find_library(COLAMD_LIBRARY colamd PATHS ${UMFPACK_LIBDIR} $ENV{UMFPACKDIR} ${LIB_INSTALL_DIR})
|
||||||
if (COLAMD_LIBRARY)
|
if (COLAMD_LIBRARY)
|
||||||
@ -41,13 +39,7 @@ if(BLAS_FOUND)
|
|||||||
# set(UMFPACK_LIBRARIES FALSE)
|
# set(UMFPACK_LIBRARIES FALSE)
|
||||||
endif (COLAMD_LIBRARY)
|
endif (COLAMD_LIBRARY)
|
||||||
|
|
||||||
endif(UMFPACK_LIBRARIES)
|
endif(UMFPACK_LIBRARIES)
|
||||||
|
|
||||||
if(UMFPACK_LIBRARIES)
|
|
||||||
set(UMFPACK_LIBRARIES ${UMFPACK_LIBRARIES} ${BLAS_LIBRARIES})
|
|
||||||
endif(UMFPACK_LIBRARIES)
|
|
||||||
|
|
||||||
endif(BLAS_FOUND)
|
|
||||||
|
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include(FindPackageHandleStandardArgs)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user