Skip to content

Commit

Permalink
CMake: Skip expensive boost test
Browse files Browse the repository at this point in the history
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] boostorg/serialization#79 (comment)
  • Loading branch information
tamiko committed May 25, 2022
1 parent c64f0d1 commit e4a5a8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/configure/configure_2_boost.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
Expand Down

0 comments on commit e4a5a8f

Please sign in to comment.