Only build Metis on Unix platforms

This commit is contained in:
Matthias Hochsteger 2017-03-10 16:01:00 +01:00
parent 612cd79aa0
commit 9c42c734cf

View File

@ -108,11 +108,15 @@ endif(USE_GUI)
####################################################################### #######################################################################
if(USE_MPI) if(USE_MPI)
find_package(METIS QUIET) if(UNIX)
if(NOT METIS_FOUND) find_package(METIS QUIET)
message(STATUS "Could not find METIS, it will be built from source") if(NOT METIS_FOUND)
include(cmake/external_projects/metis.cmake) message(STATUS "Could not find METIS, it will be built from source")
endif() include(cmake/external_projects/metis.cmake)
endif()
else(UNIX)
find_package(METIS REQUIRED)
endif(UNIX)
endif(USE_MPI) endif(USE_MPI)