From: Matthias Maier Date: Wed, 25 May 2022 23:07:23 +0000 (-0500) Subject: CMake: Skip expensive boost test X-Git-Tag: v9.4.0-rc1~140^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46e19cb45f4d24a255ef445d2505290b089bcfdd;p=dealii.git CMake: Skip expensive boost test This has been finally fixed upstream sometime in late 2018 [1], and this runtime check is very expensive. Let us skip it for a safe, good version. I have chosen 1.74 semi randomly because it has been released in 2020 and is the boost version found in Debian 11. [1] https://github.com/boostorg/serialization/pull/79#issuecomment-439726837 --- diff --git a/cmake/configure/configure_2_boost.cmake b/cmake/configure/configure_2_boost.cmake index f657345c63..e9f29edd0b 100644 --- a/cmake/configure/configure_2_boost.cmake +++ b/cmake/configure/configure_2_boost.cmake @@ -194,7 +194,7 @@ MACRO(FEATURE_BOOST_FIND_EXTERNAL var) RESET_CMAKE_REQUIRED() ENDIF() # DEAL_II_WITH_ZLIB - IF(DEAL_II_ALLOW_PLATFORM_INTROSPECTION) + IF(${BOOST_VERSION} VERSION_LESS 1.74.0 AND DEAL_II_ALLOW_PLATFORM_INTROSPECTION) # # Test that Boost.Serialization is usable. #