From 4ba3414529370d378785e2ef201c392c8d1628ea Mon Sep 17 00:00:00 2001 From: Robert Kloefkorn <robert.kloefkorn@iris.no> Date: Fri, 25 Aug 2017 12:07:17 +0200 Subject: [PATCH] [bugfix] Define HAVE_METIS in config.h when the package is found. --- cmake/modules/FindMETIS.cmake | 1 + config.h.cmake | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/cmake/modules/FindMETIS.cmake b/cmake/modules/FindMETIS.cmake index 5cdc24324..ee98f0f22 100644 --- a/cmake/modules/FindMETIS.cmake +++ b/cmake/modules/FindMETIS.cmake @@ -144,6 +144,7 @@ endif(METIS_FOUND) # register all METIS related flags if(METIS_FOUND) + set (METIS_CONFIG_VAR HAVE_METIS) dune_register_package_flags(LIBRARIES "${METIS_LIBRARIES}" INCLUDE_DIRS "${METIS_INCLUDE_DIRS}") endif() diff --git a/config.h.cmake b/config.h.cmake index 33f7bd3e6..de7c72517 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -148,6 +148,10 @@ /* Define to ENABLE_SUITESPARSE if the SuiteSparse's UMFPACK library is available */ #cmakedefine HAVE_SUITESPARSE_UMFPACK ENABLE_SUITESPARSE +/* Define to 1 if METIS is available */ +#cmakedefine HAVE_METIS 1 + + /* Define to ENABLE_PARMETIS if you have the Parmetis library. This is only true if MPI was found by configure _and_ if the application uses the PARMETIS_CPPFLAGS */ -- GitLab