From: Jean-Paul Pelteret Date: Mon, 17 Jul 2017 13:26:39 +0000 (+0200) Subject: Tutorial CMake error message now displays configured options. X-Git-Tag: v9.0.0-rc1~1413^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd63d4a8af4c31598a3968e1a49cd3d9b8965d8f;p=dealii.git Tutorial CMake error message now displays configured options. --- diff --git a/examples/step-17/CMakeLists.txt b/examples/step-17/CMakeLists.txt index 2fa04f67cc..fdb60287ce 100644 --- a/examples/step-17/CMakeLists.txt +++ b/examples/step-17/CMakeLists.txt @@ -43,7 +43,10 @@ IF(NOT DEAL_II_WITH_PETSC OR DEAL_II_PETSC_WITH_COMPLEX) # keep in one line 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 options that conflict with these requirements." +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} +which conflict with the requirements." ) ENDIF() diff --git a/examples/step-18/CMakeLists.txt b/examples/step-18/CMakeLists.txt index 7e8b7b4429..122268bdb1 100644 --- a/examples/step-18/CMakeLists.txt +++ b/examples/step-18/CMakeLists.txt @@ -44,7 +44,11 @@ Error! This tutorial requires a deal.II library that was configured with the fol DEAL_II_WITH_MPI = ON DEAL_II_WITH_PETSC = ON DEAL_II_PETSC_WITH_COMPLEX = OFF -However, the deal.II library found at ${DEAL_II_PATH} was configured with options that conflict with these requirements." +However, the deal.II library found at ${DEAL_II_PATH} was configured with these options + DEAL_II_WITH_MPI = ${DEAL_II_WITH_MPI} + DEAL_II_WITH_PETSC = ${DEAL_II_WITH_PETSC} + DEAL_II_PETSC_WITH_COMPLEX = ${DEAL_II_PETSC_WITH_COMPLEX} +which conflict with the requirements." ) ENDIF() diff --git a/examples/step-22/CMakeLists.txt b/examples/step-22/CMakeLists.txt index 4af31ea07a..2fccdad8e8 100644 --- a/examples/step-22/CMakeLists.txt +++ b/examples/step-22/CMakeLists.txt @@ -41,7 +41,9 @@ IF(NOT DEAL_II_WITH_UMFPACK) # 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_UMFPACK = ON -However, the deal.II library found at ${DEAL_II_PATH} was configured with options that conflict with these requirements." +However, the deal.II library found at ${DEAL_II_PATH} was configured with these options + DEAL_II_WITH_UMFPACK = ${DEAL_II_WITH_UMFPACK} +which conflict with the requirements." ) ENDIF() diff --git a/examples/step-29/CMakeLists.txt b/examples/step-29/CMakeLists.txt index c31fb6ae9b..cd95259d27 100644 --- a/examples/step-29/CMakeLists.txt +++ b/examples/step-29/CMakeLists.txt @@ -41,7 +41,9 @@ IF(NOT DEAL_II_WITH_UMFPACK) # 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_UMFPACK = ON -However, the deal.II library found at ${DEAL_II_PATH} was configured with options that conflict with these requirements." +However, the deal.II library found at ${DEAL_II_PATH} was configured with these options + DEAL_II_WITH_UMFPACK = ${DEAL_II_WITH_UMFPACK} +which conflict with the requirements." ) ENDIF() diff --git a/examples/step-31/CMakeLists.txt b/examples/step-31/CMakeLists.txt index 59b1e7ffbd..fc9928924c 100644 --- a/examples/step-31/CMakeLists.txt +++ b/examples/step-31/CMakeLists.txt @@ -41,7 +41,9 @@ IF(NOT DEAL_II_WITH_TRILINOS) # 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_TRILINOS = ON -However, the deal.II library found at ${DEAL_II_PATH} was configured with options that conflict with these requirements." +However, the deal.II library found at ${DEAL_II_PATH} was configured with these options + DEAL_II_WITH_TRILINOS = ${DEAL_II_WITH_TRILINOS} +which conflict with the requirements." ) ENDIF() diff --git a/examples/step-32/CMakeLists.txt b/examples/step-32/CMakeLists.txt index 5263a44f6f..a7f13c9baa 100644 --- a/examples/step-32/CMakeLists.txt +++ b/examples/step-32/CMakeLists.txt @@ -46,7 +46,11 @@ Error! This tutorial requires a deal.II library that was configured with the fol DEAL_II_WITH_MPI = ON DEAL_II_WITH_P4EST = ON DEAL_II_WITH_TRILINOS = ON -However, the deal.II library found at ${DEAL_II_PATH} was configured with options that conflict with these requirements." +However, the deal.II library found at ${DEAL_II_PATH} was configured with these options + DEAL_II_WITH_MPI = ${DEAL_II_WITH_MPI} + DEAL_II_WITH_P4EST = ${DEAL_II_WITH_P4EST} + DEAL_II_WITH_TRILINOS = ${DEAL_II_WITH_TRILINOS} +which conflict with the requirements." ) ENDIF() diff --git a/examples/step-33/CMakeLists.txt b/examples/step-33/CMakeLists.txt index 898ee500e0..7d979baeba 100644 --- a/examples/step-33/CMakeLists.txt +++ b/examples/step-33/CMakeLists.txt @@ -44,7 +44,9 @@ IF(NOT DEAL_II_WITH_TRILINOS) # 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_TRILINOS = ON -However, the deal.II library found at ${DEAL_II_PATH} was configured with options that conflict with these requirements." +However, the deal.II library found at ${DEAL_II_PATH} was configured with these options + DEAL_II_WITH_TRILINOS = ${DEAL_II_WITH_TRILINOS} +which conflict with the requirements." ) ENDIF() diff --git a/examples/step-34/CMakeLists.txt b/examples/step-34/CMakeLists.txt index 89380b49ce..8000283474 100644 --- a/examples/step-34/CMakeLists.txt +++ b/examples/step-34/CMakeLists.txt @@ -41,7 +41,9 @@ IF(NOT DEAL_II_WITH_MUPARSER) # 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_MUPARSER = ON -However, the deal.II library found at ${DEAL_II_PATH} was configured with options that conflict with these requirements." +However, the deal.II library found at ${DEAL_II_PATH} was configured with these options + DEAL_II_WITH_MUPARSER = ${DEAL_II_WITH_MUPARSER} +which conflict with the requirements." ) ENDIF() diff --git a/examples/step-35/CMakeLists.txt b/examples/step-35/CMakeLists.txt index d237740b3d..a88f2d71cf 100644 --- a/examples/step-35/CMakeLists.txt +++ b/examples/step-35/CMakeLists.txt @@ -41,7 +41,9 @@ IF(NOT DEAL_II_WITH_UMFPACK) # 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_UMFPACK = ON -However, the deal.II library found at ${DEAL_II_PATH} was configured with options that conflict with these requirements." +However, the deal.II library found at ${DEAL_II_PATH} was configured with these options + DEAL_II_WITH_UMFPACK = ${DEAL_II_WITH_UMFPACK} +which conflict with the requirements." ) ENDIF() diff --git a/examples/step-36/CMakeLists.txt b/examples/step-36/CMakeLists.txt index 93bb5f2e67..dea42483f9 100644 --- a/examples/step-36/CMakeLists.txt +++ b/examples/step-36/CMakeLists.txt @@ -43,7 +43,11 @@ Error! This tutorial requires a deal.II library that was configured with the fol DEAL_II_WITH_PETSC = ON DEAL_II_WITH_SLEPC = ON DEAL_II_PETSC_WITH_COMPLEX = OFF -However, the deal.II library found at ${DEAL_II_PATH} was configured with options that conflict with these requirements." +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_WITH_SLEPC = ${DEAL_II_WITH_SLEPC} + DEAL_II_PETSC_WITH_COMPLEX = ${DEAL_II_PETSC_WITH_COMPLEX} +which conflict with the requirements." ) ENDIF() diff --git a/examples/step-37/CMakeLists.txt b/examples/step-37/CMakeLists.txt index 8967be228f..49d865106e 100644 --- a/examples/step-37/CMakeLists.txt +++ b/examples/step-37/CMakeLists.txt @@ -41,7 +41,9 @@ IF(NOT DEAL_II_WITH_LAPACK) # 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_LAPACK = ON -However, the deal.II library found at ${DEAL_II_PATH} was configured with options that conflict with these requirements." +However, the deal.II library found at ${DEAL_II_PATH} was configured with these options + DEAL_II_WITH_LAPACK = ${DEAL_II_WITH_LAPACK} +which conflict with the requirements." ) ENDIF() diff --git a/examples/step-40/CMakeLists.txt b/examples/step-40/CMakeLists.txt index b2f1967552..90b1efa4f4 100644 --- a/examples/step-40/CMakeLists.txt +++ b/examples/step-40/CMakeLists.txt @@ -46,7 +46,13 @@ Error! This tutorial requires a deal.II library that was configured with the fol or DEAL_II_WITH_TRILINOS = ON DEAL_II_WITH_P4EST = ON -One or both of these combinations are OFF in your installation but at least one is required for this tutorial step." +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_TRILINOS = ${DEAL_II_WITH_TRILINOS} +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() diff --git a/examples/step-41/CMakeLists.txt b/examples/step-41/CMakeLists.txt index fd3d0c34ce..bdd46250cc 100644 --- a/examples/step-41/CMakeLists.txt +++ b/examples/step-41/CMakeLists.txt @@ -41,7 +41,9 @@ IF(NOT DEAL_II_WITH_TRILINOS) # 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_TRILINOS = ON -However, the deal.II library found at ${DEAL_II_PATH} was configured with options that conflict with these requirements." +However, the deal.II library found at ${DEAL_II_PATH} was configured with these options + DEAL_II_WITH_TRILINOS = ${DEAL_II_WITH_TRILINOS} +which conflict with the requirements." ) ENDIF() diff --git a/examples/step-42/CMakeLists.txt b/examples/step-42/CMakeLists.txt index 8a4f423bdf..34b9aab7cd 100644 --- a/examples/step-42/CMakeLists.txt +++ b/examples/step-42/CMakeLists.txt @@ -46,7 +46,11 @@ Error! This tutorial requires a deal.II library that was configured with the fol DEAL_II_WITH_MPI = ON DEAL_II_WITH_P4EST = ON DEAL_II_WITH_TRILINOS = ON -However, the deal.II library found at ${DEAL_II_PATH} was configured with options that conflict with these requirements." +However, the deal.II library found at ${DEAL_II_PATH} was configured with these options + DEAL_II_WITH_MPI = ${DEAL_II_WITH_MPI} + DEAL_II_WITH_P4EST = ${DEAL_II_WITH_P4EST} + DEAL_II_WITH_TRILINOS = ${DEAL_II_WITH_TRILINOS} +which conflict with the requirements." ) ENDIF() diff --git a/examples/step-43/CMakeLists.txt b/examples/step-43/CMakeLists.txt index 9f85421c53..d6911b6a78 100644 --- a/examples/step-43/CMakeLists.txt +++ b/examples/step-43/CMakeLists.txt @@ -41,7 +41,9 @@ IF(NOT DEAL_II_WITH_TRILINOS) # 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_TRILINOS = ON -However, the deal.II library found at ${DEAL_II_PATH} was configured with options that conflict with these requirements." +However, the deal.II library found at ${DEAL_II_PATH} was configured with these options + DEAL_II_WITH_TRILINOS = ${DEAL_II_WITH_TRILINOS} +which conflict with the requirements." ) ENDIF() diff --git a/examples/step-45/CMakeLists.txt b/examples/step-45/CMakeLists.txt index 543c6f5238..84f29e20a1 100644 --- a/examples/step-45/CMakeLists.txt +++ b/examples/step-45/CMakeLists.txt @@ -43,7 +43,11 @@ Error! This tutorial requires a deal.II library that was configured with the fol DEAL_II_WITH_MPI = ON DEAL_II_WITH_P4EST = ON DEAL_II_WITH_TRILINOS = ON -However, the deal.II library found at ${DEAL_II_PATH} was configured with options that conflict with these requirements." +However, the deal.II library found at ${DEAL_II_PATH} was configured with these options + DEAL_II_WITH_MPI = ${DEAL_II_WITH_MPI} + DEAL_II_WITH_P4EST = ${DEAL_II_WITH_P4EST} + DEAL_II_WITH_TRILINOS = ${DEAL_II_WITH_TRILINOS} +which conflict with the requirements." ) ENDIF() diff --git a/examples/step-46/CMakeLists.txt b/examples/step-46/CMakeLists.txt index 5845e6703d..84112d9a22 100644 --- a/examples/step-46/CMakeLists.txt +++ b/examples/step-46/CMakeLists.txt @@ -41,7 +41,9 @@ IF(NOT DEAL_II_WITH_UMFPACK) # 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_UMFPACK = ON -However, the deal.II library found at ${DEAL_II_PATH} was configured with options that conflict with these requirements." +However, the deal.II library found at ${DEAL_II_PATH} was configured with these options + DEAL_II_WITH_UMFPACK = ${DEAL_II_WITH_UMFPACK} +which conflict with the requirements." ) ENDIF() diff --git a/examples/step-50/CMakeLists.txt b/examples/step-50/CMakeLists.txt index 12c6ef131f..51e7e449ad 100644 --- a/examples/step-50/CMakeLists.txt +++ b/examples/step-50/CMakeLists.txt @@ -46,7 +46,11 @@ Error! This tutorial requires a deal.II library that was configured with the fol DEAL_II_WITH_MPI = ON DEAL_II_WITH_P4EST = ON DEAL_II_WITH_TRILINOS = ON -However, the deal.II library found at ${DEAL_II_PATH} was configured with options that conflict with these requirements." +However, the deal.II library found at ${DEAL_II_PATH} was configured with these options + DEAL_II_WITH_MPI = ${DEAL_II_WITH_MPI} + DEAL_II_WITH_P4EST = ${DEAL_II_WITH_P4EST} + DEAL_II_WITH_TRILINOS = ${DEAL_II_WITH_TRILINOS} +which conflict with the requirements." ) ENDIF() diff --git a/examples/step-53/CMakeLists.txt b/examples/step-53/CMakeLists.txt index 7074bd884f..8a67e9d409 100644 --- a/examples/step-53/CMakeLists.txt +++ b/examples/step-53/CMakeLists.txt @@ -41,7 +41,9 @@ IF(NOT DEAL_II_WITH_ZLIB) # 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_ZLIB = ON -However, the deal.II library found at ${DEAL_II_PATH} was configured with options that conflict with these requirements." +However, the deal.II library found at ${DEAL_II_PATH} was configured with these options + DEAL_II_WITH_ZLIB = ${DEAL_II_WITH_ZLIB} +which conflict with the requirements." ) ENDIF() diff --git a/examples/step-54/CMakeLists.txt b/examples/step-54/CMakeLists.txt index 361116343f..3b5ca8d6c4 100644 --- a/examples/step-54/CMakeLists.txt +++ b/examples/step-54/CMakeLists.txt @@ -41,7 +41,9 @@ IF(NOT DEAL_II_WITH_OPENCASCADE) # 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_OPENCASCADE = ON -However, the deal.II library found at ${DEAL_II_PATH} was configured with options that conflict with these requirements." +However, the deal.II library found at ${DEAL_II_PATH} was configured with these options + DEAL_II_WITH_OPENCASCADE = ${DEAL_II_WITH_OPENCASCADE} +which conflict with the requirements." ) ENDIF() diff --git a/examples/step-55/CMakeLists.txt b/examples/step-55/CMakeLists.txt index 0226dc19d2..97845e428f 100644 --- a/examples/step-55/CMakeLists.txt +++ b/examples/step-55/CMakeLists.txt @@ -41,12 +41,18 @@ IF(NOT (DEAL_II_WITH_PETSC OR DEAL_II_WITH_TRILINOS) OR NOT DEAL_II_WITH_P4EST O 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_WITH_P4EST = ON DEAL_II_PETSC_WITH_COMPLEX = OFF + DEAL_II_WITH_P4EST = ON or DEAL_II_WITH_TRILINOS = ON DEAL_II_WITH_P4EST = ON -One or both of these combinations are OFF in your installation but at least one is required for this tutorial step." +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_TRILINOS = ${DEAL_II_WITH_TRILINOS} +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() diff --git a/examples/step-56/CMakeLists.txt b/examples/step-56/CMakeLists.txt index e46d697bcb..1ed514d272 100644 --- a/examples/step-56/CMakeLists.txt +++ b/examples/step-56/CMakeLists.txt @@ -41,7 +41,9 @@ IF(NOT DEAL_II_WITH_UMFPACK) # 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_UMFPACK = ON -However, the deal.II library found at ${DEAL_II_PATH} was configured with options that conflict with these requirements." +However, the deal.II library found at ${DEAL_II_PATH} was configured with these options + DEAL_II_WITH_UMFPACK = ${DEAL_II_WITH_UMFPACK} +which conflict with the requirements." ) ENDIF() diff --git a/examples/step-57/CMakeLists.txt b/examples/step-57/CMakeLists.txt index 3095d45dda..b15c12f06f 100644 --- a/examples/step-57/CMakeLists.txt +++ b/examples/step-57/CMakeLists.txt @@ -41,7 +41,9 @@ IF(NOT DEAL_II_WITH_UMFPACK) # 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_UMFPACK = ON -However, the deal.II library found at ${DEAL_II_PATH} was configured with options that conflict with these requirements." +However, the deal.II library found at ${DEAL_II_PATH} was configured with these options + DEAL_II_WITH_UMFPACK = ${DEAL_II_WITH_UMFPACK} +which conflict with the requirements." ) ENDIF()