]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Exclude more source files if dependencies are not satisfied. 18144/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 18 Feb 2025 00:43:56 +0000 (17:43 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 18 Feb 2025 00:44:10 +0000 (17:44 -0700)
source/differentiation/ad/CMakeLists.txt
source/differentiation/ad/ad_drivers.cc
source/opencascade/CMakeLists.txt
source/opencascade/manifold_lib.cc
source/opencascade/utilities.cc
source/sundials/CMakeLists.txt
source/sundials/n_vector.cc

index 5a5fb5ea7cb86a7257ffb3fd68a220e2b36a6d5f..6b099c3aa8c8758605b3be52476005eaa8ba80c2 100644 (file)
 ##
 ## ------------------------------------------------------------------------
 
-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
index b284a80467b8dd1a145f75cfeeadb701e63f3925..2cbc9df3a86fd675dd1e690a2bd2bba06319acf3 100644 (file)
@@ -2171,12 +2171,18 @@ namespace Differentiation
 
 
 /* --- 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
 
 
index 365e6495687c85f1ab27ec7f265b8b1a98b02a03..3fa8a78a9366fd0f4a3c8f1447d57d186b443a16 100644 (file)
 ##
 ## ------------------------------------------------------------------------
 
-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
index 19187a72d831f1505eb2aefb506523b42a2741b2..10d8c38cdb79ee1096788a675ea0b32dc9830268 100644 (file)
@@ -564,8 +564,13 @@ namespace OpenCASCADE
     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
index 3bde476df23d79404f1258ca811208835765a398..9718a8348720d46d5046de0a11a0c0bbbc9869e6 100644 (file)
@@ -917,7 +917,13 @@ namespace OpenCASCADE
     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
 
index 3b714107b9ea098418da4f2670c545ef3a02fc2b..58fd205345eecefceab846e3f6352577eba8472b 100644 (file)
 ##
 ## ------------------------------------------------------------------------
 
-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
index bb83edf5884c6f9d78de62ef0f9fed09029e5fb8..5dc41c569094af77a7189107a56da6ff02129a0a 100644 (file)
 
 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
 

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.