IF(BOOST_FOUND)
SET(${var} TRUE)
-
- #
- # 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_VERSION_MAJOR}" STREQUAL "1" AND "${BOOST_VERSION_MINOR}" STREQUAL "58")
- MESSAGE(STATUS "Boost version 1.58 is not compatible with deal.II!")
- SET(${var} FALSE)
- ENDIF()
ENDIF()
ENDMACRO()
# BOOST_VERSION_MINOR
# BOOST_VERSION_SUBMINOR
#
+# We require at least boost 1.59 since boost::container::small_vector was
+# introduced in 1.58 and some serialization bugs in 1.58 were not fixed until
+# 1.59.
SET(BOOST_DIR "" CACHE PATH "An optional hint to a BOOST installation")
SET_IF_EMPTY(BOOST_DIR "$ENV{BOOST_DIR}")
# temporarily disable ${CMAKE_SOURCE_DIR}/cmake/modules for module lookup
LIST(REMOVE_ITEM CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
-FIND_PACKAGE(Boost 1.56 COMPONENTS
+FIND_PACKAGE(Boost 1.59 COMPONENTS
iostreams serialization system thread
)
LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
# temporarily disable ${CMAKE_SOURCE_DIR}/cmake/modules for module lookup
LIST(REMOVE_ITEM CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
- FIND_PACKAGE(Boost 1.56 COMPONENTS iostreams serialization system thread)
+ FIND_PACKAGE(Boost 1.59 COMPONENTS iostreams serialization system thread)
LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
ENDIF()
found and <acronym>deal.II</acronym> will be built without support
for them.
However, there is one interface that we <i>need</i> to have: <a
- href="http://www.boost.org/" target="_top">BOOST</a>. If it is not
- found externally <code>cmake</code> will resort to the bundled boost
- version that is part of the <acronym>deal.II</acronym> tar file.
+ href="http://www.boost.org/" target="_top">BOOST 1.59</a> or newer.
+ If it is not found externally <code>cmake</code> will resort to the
+ bundled boost version that is part of the <acronym>deal.II</acronym>
+ tar file.
</p>
<p>