(NOT HDF5_WITH_MPI AND NOT DEAL_II_WITH_MPI))
SET(${var} TRUE)
ELSE()
- SET(HDF5_ADDITIONAL_WARNING_STRING
+ MESSAGE(STATUS "Insufficient hdf5 installation found: "
+ "hdf5 has to be configured with the same MPI configuration as deal.II."
+ )
+ SET(HDF5_ADDITIONAL_ERROR_STRING
"Insufficient hdf5 installation found!\n"
"hdf5 has to be configured with the same MPI configuration as deal.II, but found:\n"
" DEAL_II_WITH_MPI = ${DEAL_II_WITH_MPI}\n"
" HDF5_WITH_MPI = ${HDF5_WITH_MPI}\n"
)
- MESSAGE(WARNING "\n" ${HDF5_ADDITIONAL_WARNING_STRING} "\n")
ENDIF()
ENDIF()
ENDMACRO()
IF(METIS_MAJOR GREATER 4)
SET(${var} TRUE)
ELSE()
- MESSAGE(WARNING "\n"
+ MESSAGE(STATUS "Insufficient metis installation found: "
+ "Version 5.x required!"
)
- SET(METIS_ADDITIONAL_WARNING_STRING
+ SET(METIS_ADDITIONAL_ERROR_STRING
"Could not find a sufficient modern metis installation: "
"Version 5.x required!\n"
)
- MESSAGE(WARNING "\n" ${METIS_ADDITIONAL_WARNING_STRING} "\n")
UNSET(METIS_LIBRARY CACHE)
UNSET(METIS_INCLUDE_DIR CACHE)
# Check whether p4est supports mpi:
#
IF(NOT P4EST_WITH_MPI)
- SET(HDF5_ADDITIONAL_WARNING_STRING
+ MESSAGE(STATUS "Insufficient p4est installation found: "
+ "p4est has to be configured with MPI enabled."
+ )
+ SET(HDF5_ADDITIONAL_ERROR_STRING
"Insufficient p4est installation found!\n"
- "p4est has to be configured with enabled MPI.\n"
+ "p4est has to be configured with MPI enabled.\n"
)
- MESSAGE(WARNING "\n" ${P4EST_ADDITIONAL_WARNING_STRING} "\n")
UNSET(P4EST_LIBRARY CACHE)
UNSET(P4EST_INCLUDE_DIR CACHE)
# We support petsc from version 3.x.x onwards
#
IF(PETSC_VERSION_MAJOR LESS 3)
- SET(PETSC_ADDITIONAL_WARNING_STRING
- "Could not find a sufficient modern petsc installation: "
+ MESSAGE(STATUS "Could not find a sufficient modern PETSc installation: "
+ "Version >=3.0.0 required!"
+ )
+ SET(PETSC_ADDITIONAL_ERROR_STRING
+ "Could not find a sufficient modern PETSc installation: "
"Version >=3.0.0 required!\n"
)
- MESSAGE(WARNING "\n" ${PETSC_ADDITIONAL_WARNING_STRING} "\n")
SET(${var} FALSE)
ENDIF()
IF( (PETSC_WITH_MPIUNI AND DEAL_II_WITH_MPI)
OR
(NOT PETSC_WITH_MPIUNI AND NOT DEAL_II_WITH_MPI))
- SET(PETSC_ADDITIONAL_WARNING_STRING
- ${PETSC_ADDITIONAL_WARNING_STRING}
+ MESSAGE(STATUS "Could not find a sufficient modern PETSc installation: "
+ "PETSc has to be configured with the same MPI configuration as deal.II."
+ )
+ SET(PETSC_ADDITIONAL_ERROR_STRING
+ ${PETSC_ADDITIONAL_ERROR_STRING}
"Could not find a sufficient PETSc installation:\n"
"PETSc has to be configured with the same MPI configuration as deal.II, but found:\n"
" DEAL_II_WITH_MPI = ${DEAL_II_WITH_MPI}\n"
" PETSC_WITH_MPI = (NOT ${PETSC_WITH_MPIUNI})\n"
)
- MESSAGE(WARNING "\n" ${PETSC_ADDITIONAL_WARNING_STRING} "\n")
SET(${var} FALSE)
ENDIF()
MACRO(FEATURE_PETSC_ERROR_MESSAGE)
MESSAGE(FATAL_ERROR "\n"
"Could not find the petsc library!\n"
- ${PETSC_ADDITIONAL_WARNING_STRING}
- "\nPlease ensure that the petsc library version 3.0.0 or newer is installed on your computer.\n"
- "Furthermore PETSc has to be configured with the same mpi options as deal.II.\n"
+ ${PETSC_ADDITIONAL_ERROR_STRING}
+ "\nPlease ensure that the petsc library version 3.0.0 or newer is "
+ "installed on your computer and is configured with the same mpi options "
+ "as deal.II\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"
SET(${var} TRUE)
ELSE()
- SET(SLEPC_ADDITIONAL_WARNING_STRING
+ MESSAGE(STATUS "Could not find a sufficient SLEPc installation: "
+ "The SLEPc library must have the same version as the PETSc library."
+ )
+ SET(SLEPC_ADDITIONAL_ERROR_STRING
"Could not find a sufficient SLEPc installation: "
"The SLEPc library must have the same version as the PETSc library.\n"
)
- MESSAGE(WARNING "\n" ${SLEPC_ADDITIONAL_WARNING_STRING} "\n")
UNSET(SLEPC_INCLUDE_DIR_ARCH CACHE)
UNSET(SLEPC_INCLUDE_DIR_COMMON CACHE)
MACRO(FEATURE_SLEPC_ERROR_MESSAGE)
MESSAGE(FATAL_ERROR "\n"
"Could not find the SLEPc library!\n"
- ${SLEPC_ADDITIONAL_WARNING_STRING}
+ ${SLEPC_ADDITIONAL_ERROR_STRING}
"Please ensure that the SLEPc library version 3.0.0 or newer is installed on your computer\n"
"and the version is the same as the one of the installed PETSc library.\n"
"If the library is not at a default location, either provide some hints\n"
ENDFOREACH()
IF(NOT ${var})
- SET(TRILINOS_ADDITIONAL_WARNING_STRING
+ SET(TRILINOS_ADDITIONAL_ERROR_STRING
"The Trilinos installation found at\n"
" ${TRILINOS_DIR}\n"
"is missing one or more modules necessary for the deal.II Trilinos interfaces:\n"
"Please re-install Trilinos with the missing Trilinos subpackages
enabled.\n\n"
)
- MESSAGE(WARNING "\n" ${TRILINOS_ADDITIONAL_WARNING_STRING} "\n")
+ MESSAGE(WARNING "\n" ${TRILINOS_ADDITIONAL_ERROR_STRING} "\n")
ENDIF()
#
TRILINOS_VERSION_MINOR EQUAL 8 AND
TRILINOS_VERSION_SUBMINOR LESS 2))
- SET(TRILINOS_ADDITIONAL_WARNING_STRING
- ${TRILINOS_ADDITIONAL_WARNING_STRING}
+ SET(TRILINOS_ADDITIONAL_ERROR_STRING
+ ${TRILINOS_ADDITIONAL_ERROR_STRING}
"The Trilinos installation found at\n"
" ${TRILINOS_DIR}\n"
"with version ${TRILINOS_VERSION_MAJOR}.${TRILINOS_VERSION_MINOR}.${TRILINOS_VERSION_SUBMINOR} has bugs that make\n"
"it incompatible with deal.II. Please use versions before 10.6 or after\n"
"10.8.1.\n\n"
)
- MESSAGE(WARNING "\n" ${TRILINOS_ADDITIONAL_WARNING_STRING} "\n")
+ MESSAGE(WARNING "\n" ${TRILINOS_ADDITIONAL_ERROR_STRING} "\n")
SET(${var} FALSE)
ENDIF()
IF( (TRILINOS_WITH_MPI AND NOT DEAL_II_WITH_MPI)
OR
(NOT TRILINOS_WITH_MPI AND DEAL_II_WITH_MPI))
- SET(TRILINOS_ADDITIONAL_WARNING_STRING
- ${TRILINOS_ADDITIONAL_WARNING_STRING}
+ SET(TRILINOS_ADDITIONAL_ERROR_STRING
+ ${TRILINOS_ADDITIONAL_ERROR_STRING}
"The Trilinos installation found at\n"
" ${TRILINOS_DIR}\n"
"has to be configured with the same MPI configuration as deal.II, but found:\n"
" DEAL_II_WITH_MPI = ${DEAL_II_WITH_MPI}\n"
" TRILINOS_WITH_MPI = ${TRILINOS_WITH_MPI}\n"
)
- MESSAGE(WARNING "\n" ${TRILINOS_ADDITIONAL_WARNING_STRING} "\n")
+ MESSAGE(WARNING "\n" ${TRILINOS_ADDITIONAL_ERROR_STRING} "\n")
SET(${var} FALSE)
ENDIF()
LIST(APPEND DEAL_II_DEFINITIONS "HAS_C99_TR1_CMATH")
LIST(APPEND DEAL_II_USER_DEFINITIONS "HAS_C99_TR1_CMATH")
ELSE()
- SET(TRILINOS_ADDITIONAL_WARNING_STRING
- ${TRILINOS_ADDITIONAL_WARNING_STRING}
+ SET(TRILINOS_ADDITIONAL_ERROR_STRING
+ ${TRILINOS_ADDITIONAL_ERROR_STRING}
"The Trilinos installation found at\n"
" ${TRILINOS_DIR}\n"
"is not compatible with the C++ standard selected for\n"
"this compiler. See the deal.II FAQ page for a solution.\n\n"
)
- MESSAGE(WARNING "\n" ${TRILINOS_ADDITIONAL_WARNING_STRING} "\n")
+ MESSAGE(WARNING "\n" ${TRILINOS_ADDITIONAL_ERROR_STRING} "\n")
SET(${var} FALSE)
ENDIF()
ENDIF()
ENDMACRO()
-MACRO(FEATURE_TRILINOS_ERROR_MESSAGE)
- MESSAGE(FATAL_ERROR "\n"
- "Could not find a suitable set of trilinos libraries!\n"
- ${TRILINOS_ADDITIONAL_WARNING_STRING}
- "Please ensure that a suitable set of trilinos 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"
- " $ cmake -DTRILINOS_DIR=\"...\" <...>\n"
- "or set the relevant variables by hand in ccmake.\n\n"
- )
-ENDMACRO()
-
-
CONFIGURE_FEATURE(TRILINOS)
MESSAGE(FATAL_ERROR "\n"
"Could not find the ${_feature_lowercase} library!\n"
- ${${_feature}_ADDITIONAL_WARNING_STRING}
+ ${${_feature}_ADDITIONAL_ERROR_STRING}
"Please ensure that a suitable ${_feature_lowercase} library is installed on your computer.\n"
"If the library is not at a default location, either provide some hints\n"
"for autodetection,${_hint_snippet}${_bundled_snippet}"