ENDFOREACH()
ENDIF()
- IF(${DEAL_II_TRILINOS_WITH_TPETRA})
+ IF(DEAL_II_TRILINOS_WITH_TPETRA)
#
# Check if Tpetra is usable in fact.
#
LIST(APPEND CMAKE_REQUIRED_INCLUDES ${Trilinos_INCLUDE_DIRS})
LIST(APPEND CMAKE_REQUIRED_INCLUDES ${MPI_CXX_INCLUDE_PATH})
ADD_FLAGS(CMAKE_REQUIRED_FLAGS "${DEAL_II_CXX_VERSION_FLAG}")
+
CHECK_SYMBOL_EXISTS(
"KOKKOS_ENABLE_CUDA_LAMBDA"
"Kokkos_Macros.hpp"
- DEAL_II_KOKKOS_LAMBDA_EXISTS)
- IF(${DEAL_II_KOKKOS_LAMBDA_EXISTS})
+ DEAL_II_KOKKOS_LAMBDA_EXISTS
+ )
+ IF(DEAL_II_KOKKOS_LAMBDA_EXISTS)
ADD_FLAGS(CMAKE_REQUIRED_FLAGS "--expt-extended-lambda")
ENDIF()
- LIST(APPEND CMAKE_REQUIRED_LIBRARIES "${Trilinos_LIBRARIES}")
+
+ LIST(APPEND CMAKE_REQUIRED_LIBRARIES ${Trilinos_LIBRARIES} ${MPI_LIBRARIES})
+
CHECK_CXX_SOURCE_COMPILES(
"
#include <Tpetra_Vector.hpp>
"
TRILINOS_TPETRA_IS_FUNCTIONAL
)
+
RESET_CMAKE_REQUIRED()
+
IF(NOT TRILINOS_TPETRA_IS_FUNCTIONAL)
MESSAGE(
STATUS
NO_DEFAULT_PATH NO_CMAKE_ENVIRONMENT_PATH NO_CMAKE_PATH
NO_SYSTEM_ENVIRONMENT_PATH NO_CMAKE_SYSTEM_PATH NO_CMAKE_FIND_ROOT_PATH
)
-
+
IF(EXISTS ${SACADO_CONFIG_H})
#
# Determine whether Trilinos was configured with C++11 support and