From 46e19cb45f4d24a255ef445d2505290b089bcfdd Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Wed, 25 May 2022 18:07:23 -0500 Subject: [PATCH] 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 --- cmake/configure/configure_2_boost.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. # -- 2.39.5