From: Daniel Garcia-Sanchez Date: Wed, 1 May 2019 17:24:32 +0000 (+0200) Subject: Set-up the dependencies X-Git-Tag: v9.1.0-rc1~148^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=713cc7c291c914f848a014f7240eabd84845981c;p=dealii.git Set-up the dependencies --- diff --git a/examples/step-62/CMakeLists.txt b/examples/step-62/CMakeLists.txt index 5ebaaa6b42..c81cbcd57d 100644 --- a/examples/step-62/CMakeLists.txt +++ b/examples/step-62/CMakeLists.txt @@ -34,6 +34,26 @@ IF(NOT ${deal.II_FOUND}) ) ENDIF() +# +# Are all dependencies fulfilled? +# +IF(NOT (DEAL_II_WITH_PETSC AND DEAL_II_PETSC_WITH_COMPLEX AND DEAL_II_WITH_P4EST AND DEAL_II_WITH_HDF5)) # 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 = ON + DEAL_II_WITH_P4EST = ON + DEAL_II_WITH_HDF5 = ON +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} + DEAL_II_WITH_P4EST = ${DEAL_II_WITH_P4EST} + DEAL_II_WITH_HDF5 = ${DEAL_II_WITH_HDF5} +which conflict with the requirements. +One or both of the aforementioned combinations of prerequisites are not met by your installation, but at least one is required for this tutorial step." + ) +ENDIF() + DEAL_II_INITIALIZE_CACHED_VARIABLES() PROJECT(${TARGET}) DEAL_II_INVOKE_AUTOPILOT()