Skip to content
Snippets Groups Projects
Commit 81b1f763 authored by Lars Bilke's avatar Lars Bilke
Browse files

FindMetis uses CMake default find functions now.

parent 81fd41f1
No related branches found
No related tags found
No related merge requests found
# #
# Find the METIS includes and libraries # Find the METIS includes and libraries
# #
# METIS_INCLUDE_DIR - where to find metis.h
# METIS_LIBRARIES - List of fully qualified libraries to link against.
# METIS_FOUND - Do not attempt to use if "no" or undefined.
#
# METIS is an library that implements a variety of algorithms for # METIS is an library that implements a variety of algorithms for
# partitioning unstructured graphs, meshes, and for computing fill-reducing orderings of # partitioning unstructured graphs, meshes, and for computing fill-reducing orderings of
# sparse matrices. It can be found at: # sparse matrices. It can be found at:
# http://glaros.dtc.umn.edu/gkhome/metis/metis/download # http://glaros.dtc.umn.edu/gkhome/metis/metis/download
# #
# METIS_INCLUDE_DIR - where to find autopack.h
# METIS_LIBRARIES - List of fully qualified libraries to link against.
# METIS_FOUND - Do not attempt to use if "no" or undefined.
FIND_PATH(METIS_INCLUDE_DIR metis.h FIND_PATH(METIS_INCLUDE_DIR metis.h
/usr/include/metis /usr/include/metis
...@@ -22,10 +23,5 @@ FIND_LIBRARY(METIS_LIBRARY metis ...@@ -22,10 +23,5 @@ FIND_LIBRARY(METIS_LIBRARY metis
${CMAKE_SOURCE_DIR}/../libs/lib ${CMAKE_SOURCE_DIR}/../libs/lib
) )
IF(METIS_INCLUDE_DIR) INCLUDE(FindPackageHandleStandardArgs)
IF(METIS_LIBRARY) FIND_PACKAGE_HANDLE_STANDARD_ARGS(Metis DEFAULT_MSG METIS_LIBRARY METIS_INCLUDE_DIR)
SET( METIS_LIBRARIES ${METIS_LIBRARY})
SET( METIS_FOUND "YES" )
MESSAGE(STATUS "Metis found.")
ENDIF(METIS_LIBRARY)
ENDIF(METIS_INCLUDE_DIR)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment