MACRO(FEATURE_MPI_ERROR_MESSAGE)
- MESSAGE(SEND_ERROR "\n"
+ MESSAGE(FATAL_ERROR "\n"
"Could not find any suitable mpi library!\n\n"
"Please ensure that an mpi library is installed on your computer.\n"
"If the library is not at a default location, either provide some hints\n"
IF(DEAL_II_FEATURE_AUTODETECTION)
FEATURE_ERROR_MESSAGE("BOOST")
ELSE()
- MESSAGE(SEND_ERROR "\n"
+ MESSAGE(FATAL_ERROR "\n"
"Unmet configuration requirements: "
"DEAL_II_WITH_BOOST required, but set to OFF!.\n\n"
)
MACRO(FEATURE_DOXYGEN_ERROR_MESSAGE)
- MESSAGE(SEND_ERROR "\n"
+ MESSAGE(FATAL_ERROR "\n"
"Could not find the doxygen package!\n\n"
"Please ensure that doxygen and dot are installed on your computer.\n"
"If the packages are not at a default location, either provide some hints\n"
IF(DEAL_II_FEATURE_AUTODETECTION)
FEATURE_DOXYGEN_ERROR_MESSAGE()
ELSE()
- MESSAGE(SEND_ERROR "\n"
+ MESSAGE(FATAL_ERROR "\n"
"DEAL_II_COMPONENT_DOCUMENTATION has unmet configuration requirements: "
"DEAL_II_WITH_DOXYGEN required, but set to OFF!\n\n"
)
MACRO(FEATURE_FUNCTIONPARSER_ERROR_MESSAGE)
- MESSAGE(SEND_ERROR "\n"
+ MESSAGE(FATAL_ERROR "\n"
"No module available for finding functionparser externally.\n"
"Disable DEAL_II_WITH_FUNCTIONPARSER, or enable DEAL_II_ALLOW_BUNDLED.\n\n"
)
MACRO(FEATURE_METIS_ERROR_MESSAGE)
- MESSAGE(SEND_ERROR "\n"
+ MESSAGE(FATAL_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"
MACRO(FEATURE_MUMPS_ERROR_MESSAGE)
- MESSAGE(SEND_ERROR "\n"
+ MESSAGE(FATAL_ERROR "\n"
"Could not find the mumps library!\n"
"Please ensure that the library is installed on your computer.\n"
"If the libraries is not at a default location, either provide some hints\n"
MACRO(FEATURE_P4EST_ERROR_MESSAGE)
- MESSAGE(SEND_ERROR "\n"
+ MESSAGE(FATAL_ERROR "\n"
"Could not find the p4est and sc libraries!\n\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"
MACRO(FEATURE_PETSC_ERROR_MESSAGE)
- MESSAGE(SEND_ERROR "\n"
+ MESSAGE(FATAL_ERROR "\n"
"Could not find the petsc library!\n\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"
MACRO(FEATURE_TRILINOS_ERROR_MESSAGE)
- MESSAGE(SEND_ERROR "\n"
+ MESSAGE(FATAL_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"
MACRO(FEATURE_UMFPACK_ERROR_MESSAGE)
- MESSAGE(SEND_ERROR "\n"
+ MESSAGE(FATAL_ERROR "\n"
"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"
# fullfilled. In this case all necessary variables for
# FEATURE_${feature}_CONFIGURE_EXTERNAL must be set. Otherwise
# var should remain unset.
-# This macro should give an error (SEND_ERROR or FATAL_ERROR).
+# This macro should give an error (FATAL_ERROR or FATAL_ERROR).
#
# FEATURE_${feature}_CONFIGURE_EXTERNAL(var) (macro, mandatory)
# which should setup all necessary configuration for the feature with
# is set up, or be undefined.
#
# FEATURE_${feature}_ERROR_MESSAGE() (macro, optional)
-# which should print a meaningfull error message (with SEND_ERROR) for
+# which should print a meaningfull error message (with FATAL_ERROR) for
# the case that no external library was found (and bundled is not
# allowed to be used.) If not defined, a suitable default error message
# will be printed.
MACRO(FEATURE_ERROR_MESSAGE feature)
STRING(TOLOWER ${feature} feature_lowercase)
IF(FEATURE_${feature}_HAVE_BUNDLED)
- MESSAGE(SEND_ERROR "\n"
+ MESSAGE(FATAL_ERROR "\n"
"Could not find the ${feature_lowercase} library!\n\n"
"Please ensure that the ${feature_lowercase} library is installed on your computer.\n"
"If the library is not at a default location, either provide some hints\n"
"DEAL_II_FORCE_BUNDLED_${feature}=on.\n\n"
)
ELSE()
- MESSAGE(SEND_ERROR "\n"
+ MESSAGE(FATAL_ERROR "\n"
"Could not find the ${feature_lowercase} library!\n\n"
"Please ensure that the ${feature_lowercase} library is installed on your computer.\n"
"If the library is not at a default location, either provide some hints\n"
FOREACH(macro_dependency ${FEATURE_${feature}_DEPENDS})
IF(NOT ${macro_dependency})
IF(DEAL_II_WITH_${feature})
- MESSAGE(SEND_ERROR "\n"
+ MESSAGE(FATAL_ERROR "\n"
"DEAL_II_WITH_${feature} has unmet configuration requirements: "
"${macro_dependency} has to be set to \"ON\".\n\n"
)
SET_CACHED_OPTION(${feature} ON)
ELSE()
# This should not happen. So give an error
- MESSAGE(SEND_ERROR
- "Failed to set up DEAL_II_WITH_${feature} with bundled packages."
+ MESSAGE(FATAL_ERROR
+ "\nInternal build system error: Failed to set up "
+ "DEAL_II_WITH_${feature} with bundled packages.\n\n"
)
ENDIF()
ELSE()
- MESSAGE(FATAL_ERROR
+ MESSAGE(FATAL_ERROR "\n"
"Internal build system error: DEAL_II_FORCE_BUNDLED_${feature} "
- "defined, but FEATURE_${feature}_HAVE_BUNDLED not present."
+ "defined, but FEATURE_${feature}_HAVE_BUNDLED not present.\n"
)
ENDIF()
SET_CACHED_OPTION(${feature} ON)
ELSE()
# This should not happen. So give an error
- MESSAGE(SEND_ERROR
- "Failed to set up DEAL_II_WITH_${feature} with external dependencies."
+ MESSAGE(FATAL_ERROR
+ "\nInternal build system error: Failed to set up "
+ "DEAL_II_WITH_${feature} with external dependencies.\n\n"
)
ENDIF()
ENDIF()
ELSE()
# This should not happen. So give an error
- MESSAGE(SEND_ERROR
- "Failed to set up DEAL_II_WITH_${feature} with bundled packages."
+ MESSAGE(FATAL_ERROR
+ "\nInternal build system error: Failed to set up "
+ "DEAL_II_WITH_${feature} with bundled packages.\n\n"
)
ENDIF()
ELSE()
#
IF(NOT ( "${CMAKE_C_COMPILER_ID}" STREQUAL "${CMAKE_CXX_COMPILER_ID}" AND
"${CMAKE_C_COMPILER_VERSION}" STREQUAL "${CMAKE_CXX_COMPILER_VERSION}" ) )
- MESSAGE(SEND_ERROR "\n"
+ MESSAGE(FATAL_ERROR "\n"
"Configuration error: The specified C and CXX compiler have to be the "
"same, but found:\n"
"CMAKE_C_COMPILER: ${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION}\n"