From 734afc262d40cf7c65f782f726140e91d2bbdcad Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Fri, 2 Jul 2021 10:51:30 +0200 Subject: [PATCH] [cmake] Added Windows PETSc check. --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ee89254ec8..11d4cb1531d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,6 +92,12 @@ option(OGS_BUILD_GUI "Should the Data Explorer be built?" OFF) option(OGS_INSITU "Builds OGS with insitu visualization capabilities." OFF) option(OGS_USE_LIS "Use Lis" OFF) option(OGS_USE_PETSC "Use PETSc routines" OFF) +if(OGS_USE_PETSC AND MSVC) + message( + FATAL_ERROR + "OGS_USE_PETSC=ON is not supported on Windows Visual Studio! Use Linux or macOS." + ) +endif() option(OGS_USE_NETCDF "Add NetCDF support." OFF) option(OGS_USE_XDMF "Add Xdmf file IO support" OFF) -- GitLab