From 9c42c734cf52f98abd18b5c731e56d2af375013a Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Fri, 10 Mar 2017 16:01:00 +0100 Subject: [PATCH] Only build Metis on Unix platforms --- cmake/SuperBuild.cmake | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/cmake/SuperBuild.cmake b/cmake/SuperBuild.cmake index f77638f1..b802b6fa 100644 --- a/cmake/SuperBuild.cmake +++ b/cmake/SuperBuild.cmake @@ -108,11 +108,15 @@ endif(USE_GUI) ####################################################################### if(USE_MPI) - 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(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() + else(UNIX) + find_package(METIS REQUIRED) + endif(UNIX) endif(USE_MPI)