From 06144e7e3ebf1bb5b0ce29e1f7e17a0116e1a1f3 Mon Sep 17 00:00:00 2001 From: maier Date: Tue, 25 Sep 2012 10:26:53 +0000 Subject: [PATCH] Add some more descriptive hints to the other features, too git-svn-id: https://svn.dealii.org/branches/branch_cmake@26716 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/cmake/configure/configure_metis.cmake | 16 ++++++++++++++++ deal.II/cmake/configure/configure_petsc.cmake | 2 +- deal.II/cmake/configure/configure_trilinos.cmake | 16 ++++++++++++++++ deal.II/cmake/configure/configure_umfpack.cmake | 5 ++++- 4 files changed, 37 insertions(+), 2 deletions(-) diff --git a/deal.II/cmake/configure/configure_metis.cmake b/deal.II/cmake/configure/configure_metis.cmake index 36f2ee6852..2df540c719 100644 --- a/deal.II/cmake/configure/configure_metis.cmake +++ b/deal.II/cmake/configure/configure_metis.cmake @@ -26,5 +26,21 @@ MACRO(FEATURE_METIS_CONFIGURE_EXTERNAL var) ENDMACRO() +SET(FEATURE_METIS_CUSTOM_ERROR_MESSAGE TRUE) + + +MACRO(FEATURE_METIS_ERROR_MESSAGE) + MESSAGE(SEND_ERROR "\n" + "Could not find the metis library!\n\n" + "Please ensure that the metis library version 5.0 or newer is installed on your computer.\n" + "If the library is not at a default location, either provide some hints\n" + "for the autodetection:\n" + " $ METIS_DIR=\"...\" cmake <...>\n" + " $ ccmake -DMETIS_DIR=\"...\" cmake <...>\n" + "or set the relevant variables by hand in ccmake.\n\n" + ) +ENDMACRO() + + CONFIGURE_FEATURE(METIS) diff --git a/deal.II/cmake/configure/configure_petsc.cmake b/deal.II/cmake/configure/configure_petsc.cmake index 4ba04d9841..e5dfc46dc0 100644 --- a/deal.II/cmake/configure/configure_petsc.cmake +++ b/deal.II/cmake/configure/configure_petsc.cmake @@ -93,7 +93,7 @@ SET(FEATURE_PETSC_CUSTOM_ERROR_MESSAGE TRUE) MACRO(FEATURE_PETSC_ERROR_MESSAGE) MESSAGE(SEND_ERROR "\n" "Could not find the petsc library!\n\n" - "Please ensure that the petsc library is installed on your computer.\n" + "Please ensure that the petsc library version 3.0.0 or newer is installed on your computer.\n" "If the library is not at a default location, either provide some hints\n" "for the autodetection:\n" "PETSc installed with --prefix=<...> to a destination:\n" diff --git a/deal.II/cmake/configure/configure_trilinos.cmake b/deal.II/cmake/configure/configure_trilinos.cmake index bbce6f645d..d2e6efeccc 100644 --- a/deal.II/cmake/configure/configure_trilinos.cmake +++ b/deal.II/cmake/configure/configure_trilinos.cmake @@ -182,5 +182,21 @@ MACRO(FEATURE_TRILINOS_CONFIGURE_EXTERNAL var) ENDMACRO() +SET(FEATURE_TRILINOS_CUSTOM_ERROR_MESSAGE TRUE) + + +MACRO(FEATURE_TRILINOS_ERROR_MESSAGE) + MESSAGE(SEND_ERROR "\n" + "Could not find a suitable set of trilinos libraries!\n" + "Please ensure that all necessary libraries are installed on your computer.\n" + "If the libraries are not at a default location, either provide some hints\n" + "for the autodetection:\n" + " $ TRILINOS_DIR=\"...\" cmake <...>\n" + " $ ccmake -DTRILINOS_DIR=\"...\" cmake <...>\n" + "or set the relevant variables by hand in ccmake.\n\n" + ) +ENDMACRO() + + CONFIGURE_FEATURE(TRILINOS) diff --git a/deal.II/cmake/configure/configure_umfpack.cmake b/deal.II/cmake/configure/configure_umfpack.cmake index 8dbb073ed4..9a7380347b 100644 --- a/deal.II/cmake/configure/configure_umfpack.cmake +++ b/deal.II/cmake/configure/configure_umfpack.cmake @@ -64,7 +64,10 @@ MACRO(FEATURE_UMFPACK_ERROR_MESSAGE) "Could not find the umfpack and amd libraries!\n" "Please ensure that the libraries are installed on your computer.\n" "If the libraries are not at a default location, either provide some hints\n" - "for the autodetection, or set the relevant variables by hand in ccmake.\n\n" + "for the autodetection:\n" + " $ UMFPACK_DIR=\"...\" cmake <...>\n" + " $ ccmake -DUMFPACK_DIR=\"...\" cmake <...>\n" + "or set the relevant variables by hand in ccmake.\n" "Alternatively you may choose to compile the bundled contrib libraries\n" "by setting DEAL_II_ALLOW_CONTRIB=on or DEAL_II_FORCE_CONTRIB_UMFPACK=on.\n\n" ) -- 2.39.5