##
## ------------------------------------------------------------------------
-set(_src
- ad_drivers.cc
- ad_helpers.cc
- )
+set(_src)
+set(_inst)
-set(_inst
- ad_drivers.inst.in
- ad_drivers.inst1.in
- ad_drivers.inst2.in
- ad_helpers.inst.in
- ad_helpers.inst1.in
- ad_helpers.inst2.in
- )
+if (DEAL_II_WITH_ADOLC OR DEAL_II_TRILINOS_WITH_SACADO)
+ set(_src
+ ${_src}
+ ad_drivers.cc
+ ad_helpers.cc
+ )
+ set(_inst
+ ${_inst}
+ ad_drivers.inst.in
+ ad_drivers.inst1.in
+ ad_drivers.inst2.in
+ ad_helpers.inst.in
+ ad_helpers.inst1.in
+ ad_helpers.inst2.in
+ )
+endif()
if(DEAL_II_WITH_ADOLC)
set(_src
/* --- Explicit instantiations --- */
-# include "differentiation/ad/ad_drivers.inst"
-# ifdef DEAL_II_WITH_ADOLC
-# include "differentiation/ad/ad_drivers.inst1"
-# endif
-# ifdef DEAL_II_TRILINOS_WITH_SACADO
-# include "differentiation/ad/ad_drivers.inst2"
+// We don't build the .inst files if deal.II isn't configured with the
+// external dependencies, 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 "differentiation/ad/ad_drivers.inst"
+# ifdef DEAL_II_WITH_ADOLC
+# include "differentiation/ad/ad_drivers.inst1"
+# endif
+# ifdef DEAL_II_TRILINOS_WITH_SACADO
+# include "differentiation/ad/ad_drivers.inst2"
+# endif
# endif
##
## ------------------------------------------------------------------------
-set(_src
- utilities.cc
- manifold_lib.cc
- )
+set(_src)
+set(_inst)
-set(_inst
- manifold_lib.inst.in
- utilities.inst.in
- )
+if (DEAL_II_WITH_OPENCASCADE)
+ set(_src
+ ${_src}
+ manifold_lib.cc
+ utilities.cc
+ )
+
+ set(_inst
+ ${_inst}
+ manifold_lib.inst.in
+ utilities.inst.in
+ )
+endif()
file(GLOB _header
${CMAKE_SOURCE_DIR}/include/deal.II/opencascade/*.h
return std::make_tuple(umin, umax, vmin, vmax);
}
-// Explicit instantiations
-# include "opencascade/manifold_lib.inst"
+// We don't build the .inst file if deal.II isn't configured
+// with GMSH, 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 "opencascade/manifold_lib.inst"
+# endif
} // end namespace OpenCASCADE
DEAL_II_NAMESPACE_CLOSE
tria.create_triangulation(vertices, cells, t);
}
-# include "opencascade/utilities.inst"
+// We don't build the .inst file if deal.II isn't configured
+// with GMSH, 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 "opencascade/utilities.inst"
+# endif
} // namespace OpenCASCADE
##
## ------------------------------------------------------------------------
-set(_src
- arkode.cc
- ida.cc
- kinsol.cc
- n_vector.cc
- sunlinsol_wrapper.cc
- )
-set(_inst
- n_vector.inst.in
- )
+set(_src)
+set(_inst)
+
+if (DEAL_II_WITH_SUNDIALS)
+ set(_src
+ ${_src}
+ arkode.cc
+ ida.cc
+ kinsol.cc
+ n_vector.cc
+ sunlinsol_wrapper.cc
+ )
+
+ set(_inst
+ ${_inst}
+ n_vector.inst.in
+ )
+endif()
file(GLOB _header
${CMAKE_SOURCE_DIR}/include/deal.II/sundials/*.h
DEAL_II_NAMESPACE_OPEN
-# include "sundials/n_vector.inst"
+// We don't build the .inst file if deal.II isn't configured
+// with SUNDIALS, 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 "sundials/n_vector.inst"
+# endif
DEAL_II_NAMESPACE_CLOSE