(NOT HDF5_WITH_MPI AND NOT DEAL_II_WITH_MPI))
SET(${var} TRUE)
ELSE()
- MESSAGE(WARNING "\n"
- "Could not find a sufficient hdf5 installation: "
- "hdf5 has to be configured with the same MPI configuration as deal.II.\n\n"
+ SET(HDF5_ADDITIONAL_WARNING_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()
SET(${var} TRUE)
ELSE()
MESSAGE(WARNING "\n"
+ )
+ SET(METIS_ADDITIONAL_WARNING_STRING
"Could not find a sufficient modern metis installation: "
- "Version 5.x required!\n\n"
+ "Version 5.x required!\n"
)
+ MESSAGE(WARNING "\n" ${METIS_ADDITIONAL_WARNING_STRING} "\n")
+
UNSET(METIS_LIBRARY CACHE)
UNSET(METIS_INCLUDE_DIR CACHE)
UNSET(METIS_DIR CACHE)
# Check whether p4est supports mpi:
#
IF(NOT P4EST_WITH_MPI)
- MESSAGE(WARNING "\n"
- "Could not find a sufficient p4est installation: "
- "P4est has to be configured with MPI support enabled.\n\n"
+ SET(HDF5_ADDITIONAL_WARNING_STRING
+ "Insufficient p4est installation found!\n"
+ "p4est has to be configured with enabled MPI.\n"
)
+ MESSAGE(WARNING "\n" ${P4EST_ADDITIONAL_WARNING_STRING} "\n")
+
UNSET(P4EST_DIR CACHE)
UNSET(P4EST_LIBRARY CACHE)
UNSET(P4EST_INCLUDE_DIR CACHE)
# We support petsc from version 3.x.x onwards
#
IF(PETSC_VERSION_MAJOR LESS 3)
- MESSAGE(WARNING "\n"
+ SET(PETSC_ADDITIONAL_WARNING_STRING
"Could not find a sufficient modern petsc installation: "
- "Version >=3.0.0 required!\n\n"
+ "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))
- MESSAGE(WARNING "\n"
- "Could not find a sufficient petsc installation: "
- "Petsc has to be configured with the same MPI configuration as deal.II.\n\n"
+ SET(PETSC_ADDITIONAL_WARNING_STRING
+ ${PETSC_ADDITIONAL_WARNING_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"
- "Please ensure that the petsc library version 3.0.0 or newer is installed on your computer.\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"
"If the library is not at a default location, either provide some hints\n"
"for the autodetection:\n"
SET(${var} TRUE)
ELSE()
- MESSAGE(WARNING "\n"
+ SET(SLEPC_ADDITIONAL_WARNING_STRING
"Could not find a sufficient SLEPc installation: "
- "The SLEPc library must have the same version as the PETSc library.\n\n"
+ "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)
UNSET(SLEPC_LIBRARY CACHE)
MACRO(FEATURE_SLEPC_ERROR_MESSAGE)
MESSAGE(FATAL_ERROR "\n"
"Could not find the SLEPc library!\n"
+ ${SLEPC_ADDITIONAL_WARNING_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_INFORMATION
+ SET(TRILINOS_ADDITIONAL_WARNING_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_INFORMATION} "\n")
+ MESSAGE(WARNING "\n" ${TRILINOS_ADDITIONAL_WARNING_STRING} "\n")
ENDIF()
#
TRILINOS_VERSION_MINOR EQUAL 8 AND
TRILINOS_VERSION_SUBMINOR LESS 2))
- SET(TRILINOS_ADDITIONAL_INFORMATION
- ${TRILINOS_ADDITIONAL_INFORMATION}
+ SET(TRILINOS_ADDITIONAL_WARNING_STRING
+ ${TRILINOS_ADDITIONAL_WARNING_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_INFORMATION} "\n")
+ MESSAGE(WARNING "\n" ${TRILINOS_ADDITIONAL_WARNING_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_INFORMATION
- ${TRILINOS_ADDITIONAL_INFORMATION}
+ SET(TRILINOS_ADDITIONAL_WARNING_STRING
+ ${TRILINOS_ADDITIONAL_WARNING_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_INFORMATION} "\n")
+ MESSAGE(WARNING "\n" ${TRILINOS_ADDITIONAL_WARNING_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_INFORMATION
- ${TRILINOS_ADDITIONAL_INFORMATION}
+ SET(TRILINOS_ADDITIONAL_WARNING_STRING
+ ${TRILINOS_ADDITIONAL_WARNING_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_INFORMATION} "\n")
+ MESSAGE(WARNING "\n" ${TRILINOS_ADDITIONAL_WARNING_STRING} "\n")
SET(${var} FALSE)
ENDIF()
ENDIF()
MACRO(FEATURE_TRILINOS_ERROR_MESSAGE)
MESSAGE(FATAL_ERROR "\n"
"Could not find a suitable set of trilinos libraries!\n"
- ${TRILINOS_ADDITIONAL_INFORMATION}
+ ${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"
MESSAGE(FATAL_ERROR "\n"
"Could not find the ${_feature_lowercase} library!\n"
- "Please ensure that the ${_feature_lowercase} library is installed on your computer.\n"
+ ${${_feature}_ADDITIONAL_WARNING_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}"
)