# 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.
+
+#
+# We require at least boost 1.59.
+# - Boost::container::small_vector was introduced in 1.58 and some
+# serialization bugs in 1.58 were not fixed until 1.59.
+#
+SET(BOOST_VERSION_REQUIRED 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/)
IF(DEAL_II_WITH_ZLIB)
- FIND_PACKAGE(Boost 1.59 COMPONENTS
+ FIND_PACKAGE(Boost ${BOOST_VERSION_REQUIRED} COMPONENTS
iostreams serialization system thread
)
ELSE()
- FIND_PACKAGE(Boost 1.59 COMPONENTS
+ FIND_PACKAGE(Boost ${BOOST_VERSION_REQUIRED} COMPONENTS
serialization system thread
)
ENDIF()
# temporarily disable ${CMAKE_SOURCE_DIR}/cmake/modules for module lookup
LIST(REMOVE_ITEM CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
IF(DEAL_II_WITH_ZLIB)
- FIND_PACKAGE(Boost 1.59 COMPONENTS iostreams serialization system thread)
+ FIND_PACKAGE(Boost ${BOOST_VERSION_REQUIRED} COMPONENTS iostreams serialization system thread)
ELSE()
- FIND_PACKAGE(Boost 1.59 COMPONENTS serialization system thread)
+ FIND_PACKAGE(Boost ${BOOST_VERSION_REQUIRED} COMPONENTS serialization system thread)
ENDIF()
LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
ENDIF()