From badbdc83517e2ea35c5b8650646b66a2f4f5be2c Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Mon, 6 Dec 2021 14:28:48 -0600 Subject: [PATCH] Boost: Disallow version 1.77 due to multiple unresolved upstream bugs Closes: https://github.com/dealii/dealii/issues/12817 --- cmake/configure/configure_2_boost.cmake | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/cmake/configure/configure_2_boost.cmake b/cmake/configure/configure_2_boost.cmake index b61c7a64d5..beb510575e 100644 --- a/cmake/configure/configure_2_boost.cmake +++ b/cmake/configure/configure_2_boost.cmake @@ -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 "") + 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. -- 2.39.5