DEAL_II_COMPILER_HAS_AS_NEEDED)
IF(DEAL_II_COMPILER_HAS_AS_NEEDED)
- SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-as-needed")
+ SET(CMAKE_SHARED_LINKER_FLAGS
+ "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-as-needed"
+ )
ENDIF()
IF(NOT DEAL_II_MIN_VECTOR_CAPACITY)
# We have a problem...
MESSAGE(WARNING
- "Could not determine DEAL_II_MIN_VECTOR_CAPACITY, source might not compile..."
+ "Could not determine DEAL_II_MIN_VECTOR_CAPACITY, "
+ "source might not compile..."
)
ELSE()
- SET(DEAL_II_MIN_VECTOR_CAPACITY ${DEAL_II_MIN_VECTOR_CAPACITY_RETURN_VALUE})
+ SET(DEAL_II_MIN_VECTOR_CAPACITY
+ ${DEAL_II_MIN_VECTOR_CAPACITY_RETURN_VALUE}
+ )
ENDIF()
IF(NOT DEAL_II_MIN_BOOL_VECTOR_CAPACITY)
# We have a problem...
MESSAGE(WARNING
- "Could not determine DEAL_II_MIN_VECTOR_CAPACITY, source might not compile..."
+ "Could not determine DEAL_II_MIN_VECTOR_CAPACITY, "
+ "source might not compile..."
)
ELSE()
- SET(DEAL_II_MIN_BOOL_VECTOR_CAPACITY ${DEAL_II_MIN_BOOL_VECTOR_CAPACITY_RETURN_VALUE})
+ SET(DEAL_II_MIN_BOOL_VECTOR_CAPACITY
+ ${DEAL_II_MIN_BOOL_VECTOR_CAPACITY_RETURN_VALUE})
ENDIF()
INCLUDE_DIRECTORIES(${MPI_CXX_INCLUDE_PATH})
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${MPI_CXX_LINK_FLAGS}")
+ # SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${MPI_CXX_COMPILE_FLAGS}")
LIST(APPEND deal_ii_external_libraries ${MPI_CXX_LIBRARIES})
SET(DEAL_II_COMPILER_SUPPORTS_MPI TRUE)
- # TODO: Set up the rest:
+ # TODO: (Maybe) set up the rest:
#MPI_CXX_COMPILER MPI Compiler wrapper for CXX
- #MPI_CXX_COMPILE_FLAGS Compilation flags for MPI programs
#MPIEXEC Executable for running MPI programs
SET(FEATURE_MPI_CUSTOM_ERROR_MESSAGE TRUE)
MACRO(FEATURE_MPI_ERROR_MESSAGE)
- MESSAGE(SEND_ERROR "
-Could not find any suitable mpi library!
-
-Please ensure that an mpi library is installed on your computer.
-If the library is not at a default location, either provide some hints
-for the autodetection, or set the relevant variables by hand in ccmake.
-
-")
+ MESSAGE(SEND_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"
+ "for the autodetection, or set the relevant variables by hand in ccmake.\n"
+ )
ENDMACRO()
IF(TBB_DEBUG_FOUND)
LIST(APPEND deal_ii_external_libraries ${TBB_DEBUG_LIBRARY})
ELSE()
- MESSAGE(WARNING "
-deal.II was configured with CMAKE_BUILD_TYPE=Debug but no debug tbb
-library was found. The regular tbb library will be used instead.
-
-")
+ MESSAGE(WARNING "\n"
+ "deal.II was configured with CMAKE_BUILD_TYPE=Debug but no debug tbb\n"
+ "library was found. The regular tbb library will be used instead.\n\n"
+ )
LIST(APPEND deal_ii_external_libraries ${TBB_LIBRARY})
ENDIF()
#
IF(NOT FEATURE_TBB_HAVE_CONTRIB)
MESSAGE(FATAL_ERROR
- "Internal build system error: configure_boost.cmake included before configure_tbb.cmake"
+ "Internal build system error: configure_boost.cmake included "
+ "before configure_tbb.cmake"
)
ENDIF()
${CMAKE_SOURCE_DIR}/contrib/boost-1.49.0/include
)
- ADD_SUBDIRECTORY(${CMAKE_SOURCE_DIR}/contrib/boost-1.49.0/libs/serialization/src)
+ ADD_SUBDIRECTORY(
+ ${CMAKE_SOURCE_DIR}/contrib/boost-1.49.0/libs/serialization/src
+ )
LIST(APPEND deal_ii_additional_object_files
$<TARGET_OBJECTS:obj_boost_serialization>
)
IF( DEAL_II_USE_MT AND NOT DEAL_II_CAN_USE_CXX1X)
- # If the C++ compiler doesn't completely support the C++1x standard (and
- # consequently we can't use std::thread, std::mutex, etc), then include all
- # the files that form BOOST's thread implementation so that we don't have to
- # build BOOST itself only to get at this small part of it. it also ensures
- # that we use the correct compiler and flags
-
- ADD_SUBDIRECTORY(${CMAKE_SOURCE_DIR}/contrib/boost-1.49.0/libs/thread/src)
+ # If the C++ compiler doesn't completely support the C++1x standard
+ # (and consequently we can't use std::thread, std::mutex, etc), then
+ # include all the files that form BOOST's thread implementation so that
+ # we don't have to build BOOST itself only to get at this small part of
+ # it. it also ensures that we use the correct compiler and flags
+
+ ADD_SUBDIRECTORY(
+ ${CMAKE_SOURCE_DIR}/contrib/boost-1.49.0/libs/thread/src
+ )
LIST(APPEND deal_ii_additional_object_files
$<TARGET_OBJECTS:obj_boost_thread>
MACRO(FEATURE_FUNCTIONPARSER_FIND_EXTERNAL var)
- MESSAGE(WARNING "
-Module for finding functionparser not written, yet!
-
-")
+ MESSAGE(WARNING "\n"
+ "Module for finding functionparser not written, yet!\n\n"
+ )
ENDMACRO()
IF(METIS_FOUND AND METIS_MAJOR GREATER 4)
SET(${var} TRUE)
ELSE()
- MESSAGE(WARNING "
-Could not find a sufficient modern metis installation:
-Version 5.x required!
-
-"
+ MESSAGE(WARNING "\n"
+ "Could not find a sufficient modern metis installation:"
+ "Version 5.x required!"
)
ENDIF()
FIND_PACKAGE(P4EST)
FIND_PACKAGE(SC)
+ #
+ # TODO: Check for mpi consistency...
+ #
+
IF(P4EST_FOUND AND SC_FOUND)
SET(${var} TRUE)
ENDIF()
${P4EST_DEBUG_LIBRARY} ${SC_DEBUG_LIBRARY}
)
ELSE()
- MESSAGE(WARNING "
-deal.II was configured with CMAKE_BUILD_TYPE=Debug but no debug p4est and
-sc libraries were found. The regular p4est and sc libraries will be used
-instead.
-
-")
+ MESSAGE(WARNING "\n"
+ "deal.II was configured with CMAKE_BUILD_TYPE=Debug but no debug p4est and\n"
+ "sc libraries were found. The regular p4est and sc libraries will be used\n"
+ "instead.\n\n"
+ )
LIST(APPEND deal_ii_external_libraries
${P4EST_LIBRARY} ${SC_LIBRARY}
)
MACRO(FEATURE_P4EST_ERROR_MESSAGE)
- MESSAGE(SEND_ERROR "
-Could not find the p4est and sc libraries!
-
-Please ensure that the libraries are installed on your computer.
-If the libraries are not at a default location, either provide some hints
-for the autodetection, or set the relevant variables by hand in ccmake.
-
-")
+ MESSAGE(SEND_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"
+ "for the autodetection, or set the relevant variables by hand in ccmake.\n\n"
+ )
ENDMACRO()
ENDFOREACH()
IF(NOT ${var})
- MESSAGE(WARNING "
-The Trilinos installation is missing one or more modules necessary for
-the deal.II Trilinos interfaces:
-${macro_modules_missing}
-
-Please re-install Trilinos with the missing Trilinos subpackages enabled.
-
-")
+ MESSAGE(WARNING "\n"
+ "The Trilinos installation is missing one or more modules necessary for\n"
+ "the deal.II Trilinos interfaces:\n"
+ "${macro_modules_missing}\n\n"
+ "Please re-install Trilinos with the missing Trilinos subpackages enabled.\n\n"
+ )
ENDIF()
# https://software.sandia.gov/bugzilla/show_bug.cgi?id=5319
#
IF(TRILINOS_MAJOR EQUAL 10 AND TRILINOS_MINOR EQUAL 6)
- MESSAGE(WARNING "
-Trilinos versions ${TRILINOS_MAJOR}.${TRILINOS_MINOR}.x have bugs that make
-it incompatible with deal.II. Please use versions before 10.6 or after
-10.8.1.
-
-")
+ MESSAGE(WARNING "\n"
+ "Trilinos versions ${TRILINOS_MAJOR}.${TRILINOS_MINOR}.x have bugs that make\n"
+ "it incompatible with deal.II. Please use versions before 10.6 or after\n"
+ "10.8.1.\n\n"
+ )
SET(${var} FALSE)
ENDIF()
IF( TRILINOS_MAJOR EQUAL 10 AND
TRILINOS_MINOR EQUAL 8 AND
TRILINOS_SUBMINOR LESS 2 )
- MESSAGE(WARNING "
-Trilinos versions 10.8.0 and 10.8.1 have bugs that make
-it incompatible with deal.II. Please use versions before 10.6 or after
-10.8.1.
-
-")
+ MESSAGE(WARNING "\n"
+ "Trilinos versions 10.8.0 and 10.8.1 have bugs that make\n"
+ "it incompatible with deal.II. Please use versions before 10.6 or after\n"
+ "10.8.1.\n\n"
+ )
SET(${var} FALSE)
ENDIF()
IF( (TRILINOS_HAVE_EPETRA_MPICOMM_H AND NOT DEAL_II_COMPILER_SUPPORTS_MPI)
OR
(NOT TRILINOS_HAVE_EPETRA_MPICOMM_H AND DEAL_II_COMPILER_SUPPORTS_MPI))
- MESSAGE(WARNING "
-Trilinos has to be configured with the same MPI configuration as deal.II.
-
-")
+ MESSAGE(WARNING "\n"
+ "Trilinos has to be configured with the same MPI configuration as deal.II.\n\n"
+ )
SET(${var} FALSE)
ENDIF()
LIST(REMOVE_ITEM CMAKE_REQUIRED_INCLUDES ${TRILINOS_INCLUDE_DIR})
IF(DEAL_II_CAN_USE_CXX11 AND NOT TRILINOS_SUPPORTS_CPP11)
- MESSAGE(WARNING "
-Your Trilinos installation is not compatible with the C++ standard selected for this compiler.
-See the deal.II FAQ page for a solution.
-
-")
+ MESSAGE(WARNING "\n"
+ "Your Trilinos installation is not compatible with the C++ standard selected for\n"
+ "this compiler. See the deal.II FAQ page for a solution.\n\n"
+ )
SET(${var} FALSE)
ENDIF()
MACRO(FEATURE_UMFPACK_ERROR_MESSAGE)
- MESSAGE(SEND_ERROR "
-Could not find the umfpack and amd libraries!
-
-Please ensure that the libraries are installed on your computer.
-If the libraries are not at a default location, either provide some hints
-for the autodetection, or set the relevant variables by hand in ccmake.
-
-Alternatively you may choose to compile the bundled contrib libraries
-by setting DEAL_II_ALLOW_CONTRIB=on or DEAL_II_FORCE_CONTRIB_UMFPACK=on.
-
-")
+ MESSAGE(SEND_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"
+ "for the autodetection, or set the relevant variables by hand in ccmake.\n\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"
+ )
ENDMACRO()
MACRO(FEATURE_ERROR_MESSAGE feature)
STRING(TOLOWER ${feature} feature_lowercase)
IF(FEATURE_${feature}_HAVE_CONTRIB)
- MESSAGE(SEND_ERROR "
-Could not find the ${feature_lowercase} library!
-
-Please ensure that the ${feature_lowercase} library is installed on your computer.
-If the library is not at a default location, either provide some hints
-for the autodetection, or set the relevant variables by hand in ccmake.
-
-Alternatively you may choose to compile the bundled contrib library of
-${feature_lowercase} by setting DEAL_II_ALLOW_CONTRIB=on or
-DEAL_II_FORCE_CONTRIB_${feature}=on.
-
-")
+ MESSAGE(SEND_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"
+ "for the autodetection, or set the relevant variables by hand in ccmake.\n\n"
+ "Alternatively you may choose to compile the bundled contrib library of\n"
+ "${feature_lowercase} by setting DEAL_II_ALLOW_CONTRIB=on or\n"
+ "DEAL_II_FORCE_CONTRIB_${feature}=on.\n\n"
+ )
ELSE()
- MESSAGE(SEND_ERROR "
-Could not find the ${feature_lowercase} library!
-
-Please ensure that the ${feature_lowercase} library is installed on your computer.
-If the library is not at a default location, either provide some hints
-for the autodetection, or set the relevant variables by hand in ccmake.
-
-")
+ MESSAGE(SEND_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"
+ "for the autodetection, or set the relevant variables by hand in ccmake.\n\n"
+ )
ENDIF()
ENDMACRO()
IF(DEAL_II_FEATURE_AUTODETECTION)
MESSAGE(STATUS
- "DEAL_II_WITH_${feature} has unmet configuration requirements: ${macro_dependency} has to be set to \"ON\"."
+ "DEAL_II_WITH_${feature} has unmet configuration requirements: "
+ "${macro_dependency} has to be set to \"ON\"."
)
SET_CACHED_OPTION(DEAL_II_WITH_${feature} OFF)
ELSE()
MESSAGE(SEND_ERROR
- "DEAL_II_WITH_${feature} has unmet configuration requirements: ${macro_dependency} has to be set to \"ON\"."
+ "DEAL_II_WITH_${feature} has unmet configuration requirements: "
+ "${macro_dependency} has to be set to \"ON\"."
)
ENDIF()
ENDIF()
ELSE()
MESSAGE(FATAL_ERROR
- "Internal build system error: DEAL_II_FORCE_CONTRIB_${feature} defined, but FEATURE_${feature}_HAVE_CONTRIB not present."
+ "Internal build system error: DEAL_II_FORCE_CONTRIB_${feature} "
+ "defined, but FEATURE_${feature}_HAVE_CONTRIB not present."
)
ENDIF()
SET(DEAL_II_PACKAGE_VERSION ${VERSION})
-SET(DEAL_II_PACKAGE_STRING "${DEAL_II_PACKAGE_NAME} ${DEAL_II_PACKAGE_VERSION}")
+SET(DEAL_II_PACKAGE_STRING
+ "${DEAL_II_PACKAGE_NAME} ${DEAL_II_PACKAGE_VERSION}"
+ )
SET(DEAL_II_PACKAGE_URL "")
-STRING(REGEX REPLACE "^([0-9]+)\\..*" "\\1" DEAL_II_MAJOR "${VERSION}")
-STRING(REGEX REPLACE "^[0-9]+\\.([0-9]+).*" "\\1" DEAL_II_MINOR "${VERSION}")
+STRING(REGEX REPLACE
+ "^([0-9]+)\\..*" "\\1" DEAL_II_MAJOR "${VERSION}"
+ )
+STRING(REGEX REPLACE
+ "^[0-9]+\\.([0-9]+).*" "\\1" DEAL_II_MINOR "${VERSION}"
+ )
SET(DEAL_II_PATH ${CMAKE_INSTALL_PREFIX})