From 0e7cfecf7aac61c7215629c86d5658dee4cbd335 Mon Sep 17 00:00:00 2001 From: Lukas Kogler Date: Tue, 1 Oct 2019 09:48:38 +0000 Subject: [PATCH] use parmetis metis in netgen --- cmake/SuperBuild.cmake | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/cmake/SuperBuild.cmake b/cmake/SuperBuild.cmake index 06174b10..6a58c2fe 100644 --- a/cmake/SuperBuild.cmake +++ b/cmake/SuperBuild.cmake @@ -101,11 +101,16 @@ endif(USE_GUI) ####################################################################### if(USE_MPI) if(UNIX) - find_package(METIS QUIET) - if(NOT METIS_FOUND) - message(STATUS "Could not find METIS, it will be built from source") - include(cmake/external_projects/metis.cmake) - endif() + if (METIS_DIR) + message(STATUS "Using external METIS at: ${METIS_DIR}") + else (METIS_DIR) + message(STATUS "Looking for system METIS") + find_package(METIS QUIET) + if(NOT METIS_FOUND) + message(WARNING "Could not find METIS, it will be built from source (this might conflict with NGSolve MUMPS)!") + include(cmake/external_projects/metis.cmake) + endif(NOT METIS_FOUND) + endif(METIS_DIR) else(UNIX) find_package(METIS REQUIRED) endif(UNIX)