From: Timo Heister Date: Thu, 4 Feb 2016 22:40:59 +0000 (-0500) Subject: blacklist boost version 1.58 X-Git-Tag: v8.4.0-rc2~37^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ba7c283d6801ff0aeb8befaa585d340555e4eb3;p=dealii.git blacklist boost version 1.58 addresses #1591 --- diff --git a/cmake/modules/FindBOOST.cmake b/cmake/modules/FindBOOST.cmake index ebf3ef8e81..cd90be22ca 100644 --- a/cmake/modules/FindBOOST.cmake +++ b/cmake/modules/FindBOOST.cmake @@ -58,6 +58,21 @@ IF(NOT Boost_FOUND AND Boost_USE_STATIC_LIBS) LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/) ENDIF() + +# +# Blacklist version 1.58 because we get serialization errors with it. At least +# version 1.56 and 1.59 are known to work. +# +IF(Boost_FOUND) + IF("${Boost_MAJOR_VERSION}" STREQUAL "1" AND "${Boost_MINOR_VERSION}" STREQUAL "58") + MESSAGE("-- Boost version 1.58 is not compatible with deal.II!") + UNSET(Boost_FOUND) + UNSET(Boost_INCLUDE_DIRS) + UNSET(Boost_LIBRARIES) + ENDIF() +ENDIF() + + IF(Boost_FOUND) # # Remove "pthread" from Boost_LIBRARIES. Threading, if necessary, is