1 # Pastix requires METIS or METIS (partitioning and reordering tools) 2 3 if (METIS_INCLUDES AND METIS_LIBRARIES) 4 set(METIS_FIND_QUIETLY TRUE) 5 endif (METIS_INCLUDES AND METIS_LIBRARIES) 6 7 find_path(METIS_INCLUDES 8 NAMES 9 metis.h 10 PATHS 11 $ENV{METISDIR} 12 ${INCLUDE_INSTALL_DIR} 13 PATH_SUFFIXES 14 metis 15 ) 16 17 18 find_library(METIS_LIBRARIES metis PATHS $ENV{METISDIR} ${LIB_INSTALL_DIR}) 19 20 include(FindPackageHandleStandardArgs) 21 find_package_handle_standard_args(METIS DEFAULT_MSG 22 METIS_INCLUDES METIS_LIBRARIES) 23 24 mark_as_advanced(METIS_INCLUDES METIS_LIBRARIES) 25