From: Wolfgang Bangerth Date: Mon, 17 Feb 2025 05:10:09 +0000 (-0700) Subject: Prevent doxygen from making a mess. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F18141%2Fhead;p=dealii.git Prevent doxygen from making a mess. --- diff --git a/source/cgal/intersections.cc b/source/cgal/intersections.cc index 5ef4a57666..e96a99906d 100644 --- a/source/cgal/intersections.cc +++ b/source/cgal/intersections.cc @@ -866,7 +866,15 @@ namespace CGALWrappers vertices0, vertices1, tol); } -# include "cgal/intersections.inst" +// Explicit instantiations. +// +// We don't build the instantiations.inst file if deal.II isn't +// configured with CGAL, but doxygen doesn't know that and tries to +// find that file anyway for parsing -- which then of course it fails +// on. So exclude the following from doxygen consideration. +# ifndef DOXYGEN +# include "cgal/intersections.inst" +# endif } // namespace CGALWrappers diff --git a/source/cgal/surface_mesh.cc b/source/cgal/surface_mesh.cc index 04da4da141..aaee70f2c0 100644 --- a/source/cgal/surface_mesh.cc +++ b/source/cgal/surface_mesh.cc @@ -193,8 +193,17 @@ namespace CGALWrappers { Assert(false, ExcImpossibleInDimSpacedim(dim, spacedim)); } - } // explicit instantiations -# include "cgal/surface_mesh.inst" + } + +// Explicit instantiations. +// +// We don't build the instantiations.inst file if deal.II isn't +// configured with CGAL, but doxygen doesn't know that and tries to +// find that file anyway for parsing -- which then of course it fails +// on. So exclude the following from doxygen consideration. +# ifndef DOXYGEN +# include "cgal/surface_mesh.inst" +# endif } // namespace CGALWrappers # endif