]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Prevent doxygen from making a mess. 18141/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 17 Feb 2025 05:10:09 +0000 (22:10 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 17 Feb 2025 05:10:09 +0000 (22:10 -0700)
source/cgal/intersections.cc
source/cgal/surface_mesh.cc

index 5ef4a57666db62cb6c0dfe57869b888bffbdbbe7..e96a99906d43f0036e34e8db0f0628cfd4316dfe 100644 (file)
@@ -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
 
index 04da4da141156bd48dec81ee4641c34a3a24df9c..aaee70f2c0460456b880dd82aafb4215f184c7c2 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.