# We require at least Trilinos 12.4
#
if(TRILINOS_VERSION VERSION_LESS 12.4)
-
message(STATUS "Could not find a sufficient Trilinos installation: "
"deal.II requires at least version 12.4, but version ${TRILINOS_VERSION} was found."
)
KOKKOS_CHECK(OPTIONS CUDA_LAMBDA)
endif()
+ if(TRILINOS_WITH_ROL)
+ #
+ # We require at least Trilinos 12.14.1
+ #
+ if(TRILINOS_VERSION VERSION_LESS 12.14.1)
+ message(STATUS "Could not find a sufficient Trilinos installation: "
+ "deal.II requires at least version 12.14.1 if the Trilinos installation includes ROL, "
+ "but version ${TRILINOS_VERSION} was found."
+ )
+ set(TRILINOS_ADDITIONAL_ERROR_STRING
+ ${TRILINOS_ADDITIONAL_ERROR_STRING}
+ "The Trilinos installation (found at \"${TRILINOS_DIR}\")\n"
+ "with version ${TRILINOS_VERSION} is too old.\n"
+ "deal.II requires at least version 12.14.1 if the Trilinos installation includes ROL.\n\n"
+ )
+ set(${var} FALSE)
+ endif()
+ endif()
+
if(TRILINOS_WITH_TPETRA)
#
# Check if Tpetra is usable in fact.