]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Skip expensive boost test 13827/head
authorMatthias Maier <tamiko@43-1.org>
Wed, 25 May 2022 23:07:23 +0000 (18:07 -0500)
committerMatthias Maier <tamiko@43-1.org>
Wed, 25 May 2022 23:07:23 +0000 (18:07 -0500)
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

index f657345c637ce934d09fdabf877f4c5406814858..e9f29edd0b786789b6dba3f45ca6ec150afd6a9a 100644 (file)
@@ -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.
       #

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.