]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Boost: Disallow version 1.77 due to multiple unresolved upstream bugs 13036/head
authorMatthias Maier <tamiko@43-1.org>
Mon, 6 Dec 2021 20:28:48 +0000 (14:28 -0600)
committerMatthias Maier <tamiko@43-1.org>
Mon, 6 Dec 2021 20:28:48 +0000 (14:28 -0600)
Closes: https://github.com/dealii/dealii/issues/12817
cmake/configure/configure_2_boost.cmake

index b61c7a64d5a54dc3ff388bf9f74ad343e9c6dc57..beb510575e1a97feeddbeb9f9e37e06431ed98b5 100644 (file)
@@ -146,6 +146,25 @@ MACRO(FEATURE_BOOST_FIND_EXTERNAL var)
   IF(BOOST_FOUND)
     SET(${var} TRUE)
 
+    #
+    # Set BOOST_DIR to something meaningful if empty
+    #
+    IF("${BOOST_DIR}" STREQUAL "")
+      SET(BOOST_DIR "<system location>")
+    ENDIF()
+
+    IF(BOOST_VERSION VERSION_EQUAL 1.77)
+      MESSAGE(STATUS "Could not find a sufficient Boost installation: "
+        "deal.II is not compatible with Boost version 1.77."
+        )
+      SET(BOOST_ADDITIONAL_ERROR_STRING
+        ${BOOST_ADDITIONAL_ERROR_STRING}
+        "The Boost installation (found at \"${BOOST_DIR}\")\n"
+        "with version ${BOOST_VERSION} is not compatible with deal.II.\n\n"
+        )
+      SET(${var} FALSE)
+    ENDIF()
+
     IF(DEAL_II_WITH_ZLIB)
       #
       # Test that Boost.Iostreams is usable.

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.