mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-09 07:00:27 +08:00
26 lines
716 B
CMake
26 lines
716 B
CMake
# Pastix lib requires linking to a blas library.
|
|
# It is up to the user of this module to find a BLAS and link to it.
|
|
# Pastix requires SCOTCH or METIS (partitioning and reordering tools) as well
|
|
|
|
if (PASTIX_INCLUDES AND PASTIX_LIBRARIES)
|
|
set(PASTIX_FIND_QUIETLY TRUE)
|
|
endif (PASTIX_INCLUDES AND PASTIX_LIBRARIES)
|
|
|
|
find_path(PASTIX_INCLUDES
|
|
NAMES
|
|
pastix_nompi.h
|
|
PATHS
|
|
$ENV{PASTIXDIR}
|
|
${INCLUDE_INSTALL_DIR}
|
|
)
|
|
|
|
find_library(PASTIX_LIBRARIES pastix PATHS $ENV{PASTIXDIR} ${LIB_INSTALL_DIR})
|
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(PASTIX DEFAULT_MSG
|
|
PASTIX_INCLUDES PASTIX_LIBRARIES)
|
|
|
|
mark_as_advanced(PASTIX_INCLUDES PASTIX_LIBRARIES)
|