Don't require MPI to be found by cmake

This commit is contained in:
Matthias Hochsteger 2024-05-07 22:55:42 +02:00
parent 61f568d8e9
commit ee3722e345

View File

@ -338,7 +338,7 @@ endif (USE_PYTHON)
add_library(netgen_metis INTERFACE)
if (USE_MPI)
set(MPI_DETERMINE_LIBRARY_VERSION TRUE)
find_package(MPI REQUIRED)
find_package(MPI)
find_package(METIS REQUIRED)
target_include_directories(netgen_metis INTERFACE ${METIS_INCLUDE_DIR})