]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Update Sundials version check 11649/head
authorMatthias Maier <tamiko@43-1.org>
Thu, 28 Jan 2021 22:01:36 +0000 (16:01 -0600)
committerMatthias Maier <tamiko@43-1.org>
Thu, 28 Jan 2021 22:01:36 +0000 (16:01 -0600)
cmake/configure/configure_sundials.cmake
doc/news/changes/incompatibilities/20210128Maier [new file with mode: 0644]

index 62522094ce495c9d845b3f520a99f444610b38a6..4a9b8b04701ee1af41000f7581b685d1aced2be6 100644 (file)
@@ -23,6 +23,23 @@ MACRO(FEATURE_SUNDIALS_FIND_EXTERNAL var)
   IF(SUNDIALS_FOUND)
     SET(${var} TRUE)
   ENDIF()
+
+  #
+  # We require at least sundials 3.0.0
+  #
+  IF(SUNDIALS_VERSION VERSION_LESS 3.0.0)
+
+    MESSAGE(STATUS "Could not find a sufficient Sundials installation: "
+      "deal.II requires at least version 3.0.0, but version ${SUNDIALS_VERSION} was found."
+      )
+    SET(SUNDIALS_ADDITIONAL_ERROR_STRING
+      ${SUNDIALS_ADDITIONAL_ERROR_STRING}
+      "The SUNDIALS installation (found at \"${SUNDIALS_DIR}\")\n"
+      "with version ${SUNDIALS_VERSION} is too old.\n"
+      "deal.II requires at least version 3.0.0.\n\n"
+      )
+    SET(${var} FALSE)
+  ENDIF()
 ENDMACRO()
 
 MACRO(FEATURE_SUNDIALS_CONFIGURE_EXTERNAL)
diff --git a/doc/news/changes/incompatibilities/20210128Maier b/doc/news/changes/incompatibilities/20210128Maier
new file mode 100644 (file)
index 0000000..e9040e6
--- /dev/null
@@ -0,0 +1,3 @@
+Updated: deal.II dropped support for Sundials older than version 3.0.0.
+<br>
+(Matthias Maier, Luca Heltai, 2021/01/25)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.