You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
615 B

  1. # Pastix requires SCOTCH or METIS (partitioning and reordering tools)
  2. if (SCOTCH_INCLUDES AND SCOTCH_LIBRARIES)
  3. set(SCOTCH_FIND_QUIETLY TRUE)
  4. endif (SCOTCH_INCLUDES AND SCOTCH_LIBRARIES)
  5. find_path(SCOTCH_INCLUDES
  6. NAMES
  7. scotch.h
  8. PATHS
  9. $ENV{SCOTCHDIR}
  10. ${INCLUDE_INSTALL_DIR}
  11. PATH_SUFFIXES
  12. scotch
  13. )
  14. find_library(SCOTCH_LIBRARIES scotch PATHS $ENV{SCOTCHDIR} ${LIB_INSTALL_DIR})
  15. include(FindPackageHandleStandardArgs)
  16. find_package_handle_standard_args(SCOTCH DEFAULT_MSG
  17. SCOTCH_INCLUDES SCOTCH_LIBRARIES)
  18. mark_as_advanced(SCOTCH_INCLUDES SCOTCH_LIBRARIES)