OPTION(DEAL_II_WITH_ARPACK
"Build deal.II with support for ARPACK."
- ON)
+ OFF)
OPTION(DEAL_II_WITH_BLAS
"Build deal.II with support for BLAS."
# Checks for various header files: # TODO: Obsolete?
#
-CHECK_INCLUDE_FILES("stdint.h" HAVE_STDINT_H)
-CHECK_INCLUDE_FILES("stdlib.h" HAVE_STDLIB_H)
-CHECK_INCLUDE_FILES("strings.h" HAVE_STRINGS_H)
-CHECK_INCLUDE_FILES("string.h" HAVE_STRING_H)
-CHECK_INCLUDE_FILES("sys/stat.h" HAVE_SYS_STAT_H)
-CHECK_INCLUDE_FILES("sys/syscall.h" HAVE_SYS_SYSCALL_H)
-CHECK_INCLUDE_FILES("sys/times.h" HAVE_SYS_TIMES_H)
-CHECK_INCLUDE_FILES("sys/types.h" HAVE_SYS_TYPES_H)
+CHECK_INCLUDE_FILE("stdint.h" HAVE_STDINT_H)
+CHECK_INCLUDE_FILE("stdlib.h" HAVE_STDLIB_H)
+CHECK_INCLUDE_FILE("strings.h" HAVE_STRINGS_H)
+CHECK_INCLUDE_FILE("string.h" HAVE_STRING_H)
+CHECK_INCLUDE_FILE("sys/stat.h" HAVE_SYS_STAT_H)
+CHECK_INCLUDE_FILE("sys/syscall.h" HAVE_SYS_SYSCALL_H)
+CHECK_INCLUDE_FILE("sys/times.h" HAVE_SYS_TIMES_H)
+CHECK_INCLUDE_FILE("sys/types.h" HAVE_SYS_TYPES_H)
#
# Trilinos has to be configured with the same MPI configuration as
- # deal.II. So check this:
+ # deal.II. TODO: Refine this check...
#
- # TODO: Refine this check...
+
#
- IF(NOT "${Trilinos_MPI_EXEC}" EQUAL "")
- SET(TRILINOS_USE_MPI TRUE)
- ENDIF()
- IF( (TRILINOS_USE_MPI AND NOT DEAL_II_COMPILER_SUPPORTS_MPI) OR
- (NOT TRILINOS_USE_MPI AND DEAL_II_COMPILER_SUPPORTS_MPI))
+ # Epetra installs Epetra_MpiComm.h if configured trilinos was
+ # configured with mpi. We use this as a check for the mpi configuration
+ # of Epetra.
+ #
+ LIST(APPEND CMAKE_REQUIRED_INCLUDES ${TRILINOS_INCLUDE_DIR})
+ CHECK_INCLUDE_FILE_CXX("Epetra_MpiComm.h" TRILINOS_HAVE_EPETRA_MPICOMM_H)
+ LIST(REMOVE_ITEM CMAKE_REQUIRED_INCLUDES ${TRILINOS_INCLUDE_DIR})
+
+ 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.
INCLUDE(CheckCXXSourceCompiles)
INCLUDE(CheckCXXSourceRuns)
INCLUDE(CheckFunctionExists)
-INCLUDE(CheckIncludeFiles)
+INCLUDE(CheckIncludeFile)
+INCLUDE(CheckIncludeFileCXX)