ENDIF()
ENABLE_IF_SUPPORTED(BOOST_CXX_FLAGS "-Wno-unused-local-typedefs")
+
+ # At least BOOST 1.74 has the problem that some of the BOOST headers
+ # include other BOOST headers that are deprecated, and this then leads to
+ # warnings. That's rather annoying.
+
+ # The configure function is called only once. In case an externally provided
+ # boost library is detected, BOOST_INCLUDE_DIRS contains the include paths to
+ # be used and BOOST_BUNDLED_INCLUDE_DIRS is empty. For the bundled library, it
+ # is the other way around.
+ LIST(APPEND CMAKE_REQUIRED_INCLUDES ${BOOST_INCLUDE_DIRS} ${BOOST_BUNDLED_INCLUDE_DIRS})
+
+ CHECK_CXX_COMPILER_BUG(
+ "
+ #define BOOST_CONFIG_HEADER_DEPRECATED_HPP_INCLUDED
+ #define BOOST_HEADER_DEPRECATED(a) _Pragma(\"GCC error \\\"stop compilation\\\"\");
+ #include <boost/geometry/index/rtree.hpp>
+ int main() { return 0; }
+ "
+ DEAL_II_BOOST_HAS_BROKEN_HEADER_DEPRECATIONS)
+ RESET_CMAKE_REQUIRED()
ENDMACRO()
/* cmake/modules/FindSYMENGINE.cmake */
#cmakedefine DEAL_II_SYMENGINE_WITH_LLVM
+/* cmake/configure/configure_2_boost.cmake */
+#cmakedefine DEAL_II_BOOST_HAS_BROKEN_HEADER_DEPRECATIONS
+
/* cmake/configure/configure_2_trilinos.cmake */
#cmakedefine DEAL_II_TRILINOS_CXX_SUPPORTS_SACADO_COMPLEX_RAD
#cmakedefine DEAL_II_TRILINOS_WITH_EPETRAEXT