Merge branch 'fix_mumps_build' into 'master'

use parmetis metis in netgen

See merge request jschoeberl/netgen!180
This commit is contained in:
Matthias Hochsteger 2019-10-01 09:48:38 +00:00
commit 6e6f3a1469

View File

@ -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)