]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Exclude more files from compiling if they are functionally empty.
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 6 Feb 2025 16:30:36 +0000 (09:30 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 7 Feb 2025 16:04:09 +0000 (09:04 -0700)
source/base/CMakeLists.txt
source/gmsh/CMakeLists.txt

index 9b827593cb6bcd87292128b32e27d0de2289dffa..de3cca75d6d1998649ebe98313b6b9f388b7e435 100644 (file)
@@ -28,7 +28,6 @@ set(_unity_include_src
   exceptions.cc
   flow_function.cc
   function.cc
-  function_cspline.cc
   function_derivative.cc
   function_signed_distance.cc
   function_lib.cc
@@ -121,6 +120,13 @@ if(DEAL_II_WITH_HDF5)
   )
 endif()
 
+if(DEAL_II_WITH_GSL)
+  set(_unity_include_src
+    ${_unity_include_src}
+    function_cspline.cc
+  )
+endif()
+
 
 # determined by profiling
 set(_n_includes_per_unity_file 29)
index 5c351f4b7a284e4728cbabe72a7f08219b134226..6b44f2ebf846b9ca506b1f8675bdd6a028ececd5 100644 (file)
 ##
 ## ------------------------------------------------------------------------
 
-set(_src
-  utilities.cc
-  )
 
-set(_inst
-  utilities.inst.in
-  )
+set(_src)
+set(_inst)
+
+if(DEAL_II_WITH_GMSH)
+  set(_src
+    ${_src}
+    utilities.cc
+    )
+
+  set(_inst
+    ${_inst}
+    utilities.inst.in
+    )
+endif()
+
 
 file(GLOB _header
   ${CMAKE_SOURCE_DIR}/include/deal.II/gmsh/*.h

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.