ENDIF()
ENDMACRO()
+
+MACRO(FEATURE_CGAL_CONFIGURE_EXTERNAL)
+ # Similarly to the DEAL_II_BOOST_HAS_BROKEN_HEADER_DEPRECATIONS check run
+ # in configure_20_boost.cmake we have to check whether cgal includes
+ # a deprecated boost header. If yes, disable the boost deprecated header
+ # warning as well.
+
+ LIST(APPEND CMAKE_REQUIRED_INCLUDES
+ ${BOOST_INCLUDE_DIRS} ${BOOST_BUNDLED_INCLUDE_DIRS} ${CGAL_INCLUDE_DIRS}
+ )
+
+ CHECK_CXX_COMPILER_BUG(
+ "
+ #define BOOST_CONFIG_HEADER_DEPRECATED_HPP_INCLUDED
+ #define BOOST_HEADER_DEPRECATED(a) _Pragma(\"GCC error \\\"stop compilation\\\"\");
+ #include <CGAL/make_mesh_3.h>
+ int main() { return 0; }
+ "
+ DEAL_II_CGAL_HAS_DEPRECATED_BOOST_INCLUDES)
+
+ RESET_CMAKE_REQUIRED()
+ENDMACRO()
+
CONFIGURE_FEATURE(CGAL)
/* cmake/modules/FindSYMENGINE.cmake */
#cmakedefine DEAL_II_SYMENGINE_WITH_LLVM
-/* cmake/configure/configure_2_boost.cmake */
+/* cmake/configure/configure_20_boost.cmake */
#cmakedefine DEAL_II_BOOST_HAS_BROKEN_HEADER_DEPRECATIONS
-#ifdef defined(DEAL_II_BOOST_HAS_BROKEN_HEADER_DEPRECATIONS) && \
- !defined(BOOST_ALLOW_DEPRECATED_HEADERS)
-# define BOOST_ALLOW_DEPRECATED_HEADERS
-#endif
+
+/* cmake/configure/configure_50_cgal.cmake */
+#cmakedefine DEAL_II_CGAL_HAS_DEPRECATED_BOOST_INCLUDES
/* cmake/configure/configure_2_trilinos.cmake */
#cmakedefine DEAL_II_TRILINOS_CXX_SUPPORTS_SACADO_COMPLEX_RAD
#cmakedefine DEAL_II_TRILINOS_WITH_TPETRA
#cmakedefine DEAL_II_TRILINOS_WITH_ZOLTAN
+#if defined(DEAL_II_BOOST_HAS_BROKEN_HEADER_DEPRECATIONS) || \
+ defined(DEAL_II_CGAL_HAS_DEPRECATED_BOOST_INCLUDES)
+# ifndef BOOST_ALLOW_DEPRECATED_HEADERS
+# define BOOST_ALLOW_DEPRECATED_HEADERS
+# endif
+#endif
/***********************************************************************
* Various macros for version number query and comparison: