From c15dcc21672bf32422edd4134dd143293723a217 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sat, 1 Jul 2023 12:51:01 -0600 Subject: [PATCH] Fix cmake requirements. --- examples/step-86/CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/examples/step-86/CMakeLists.txt b/examples/step-86/CMakeLists.txt index 209c9a0d5e..acf8b260fe 100644 --- a/examples/step-86/CMakeLists.txt +++ b/examples/step-86/CMakeLists.txt @@ -34,6 +34,21 @@ if(NOT ${deal.II_FOUND}) ) endif() +# +# Are all dependencies fulfilled? +# +if(NOT DEAL_II_WITH_PETSC OR DEAL_II_PETSC_WITH_COMPLEX) # keep in one line + message(FATAL_ERROR " +Error! This tutorial requires a deal.II library that was configured with the following options: + DEAL_II_WITH_PETSC = ON + DEAL_II_PETSC_WITH_COMPLEX = OFF +However, the deal.II library found at ${DEAL_II_PATH} was configured with these options: + DEAL_II_WITH_PETSC = ${DEAL_II_WITH_PETSC} + DEAL_II_PETSC_WITH_COMPLEX = ${DEAL_II_PETSC_WITH_COMPLEX} +This conflicts with the requirements." + ) +endif() + deal_ii_initialize_cached_variables() project(${TARGET}) deal_ii_invoke_autopilot() -- 2.39.5