From 3d3426923a9f91bacd587ec1786af3e166679c4f Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Mon, 5 May 2025 14:35:51 -0500 Subject: [PATCH] CMake: add CONFIGURE_DEPENDS to header file globs This ensures that the build system is reconfigured whenever the number of header file changes. --- source/algorithms/CMakeLists.txt | 2 +- source/arborx/CMakeLists.txt | 2 +- source/base/CMakeLists.txt | 2 +- source/cgal/CMakeLists.txt | 2 +- source/differentiation/ad/CMakeLists.txt | 2 +- source/differentiation/sd/CMakeLists.txt | 2 +- source/distributed/CMakeLists.txt | 2 +- source/dofs/CMakeLists.txt | 2 +- source/fe/CMakeLists.txt | 2 +- source/gmsh/CMakeLists.txt | 2 +- source/grid/CMakeLists.txt | 2 +- source/hp/CMakeLists.txt | 2 +- source/integrators/CMakeLists.txt | 2 +- source/lac/CMakeLists.txt | 2 +- source/matrix_free/CMakeLists.txt | 2 +- source/meshworker/CMakeLists.txt | 2 +- source/multigrid/CMakeLists.txt | 2 +- source/non_matching/CMakeLists.txt | 2 +- source/numerics/CMakeLists.txt | 2 +- source/opencascade/CMakeLists.txt | 2 +- source/optimization/rol/CMakeLists.txt | 2 +- source/particles/CMakeLists.txt | 2 +- source/physics/CMakeLists.txt | 2 +- source/physics/elasticity/CMakeLists.txt | 2 +- source/sundials/CMakeLists.txt | 2 +- source/trilinos/CMakeLists.txt | 2 +- 26 files changed, 26 insertions(+), 26 deletions(-) diff --git a/source/algorithms/CMakeLists.txt b/source/algorithms/CMakeLists.txt index ca18830e7c..a39b8acd08 100644 --- a/source/algorithms/CMakeLists.txt +++ b/source/algorithms/CMakeLists.txt @@ -22,7 +22,7 @@ set(_inst operator.inst.in ) -file(GLOB _header +file(GLOB _header CONFIGURE_DEPENDS ${CMAKE_SOURCE_DIR}/include/deal.II/algorithms/*.h ) diff --git a/source/arborx/CMakeLists.txt b/source/arborx/CMakeLists.txt index e87af2d181..492f357e65 100644 --- a/source/arborx/CMakeLists.txt +++ b/source/arborx/CMakeLists.txt @@ -30,7 +30,7 @@ if(DEAL_II_WITH_ARBORX) endif() -file(GLOB _header +file(GLOB _header CONFIGURE_DEPENDS ${CMAKE_SOURCE_DIR}/include/deal.II/arborx/*.h ) diff --git a/source/base/CMakeLists.txt b/source/base/CMakeLists.txt index 9f1cd08127..68da9f31d3 100644 --- a/source/base/CMakeLists.txt +++ b/source/base/CMakeLists.txt @@ -161,7 +161,7 @@ set(_inst ) -file(GLOB _header +file(GLOB _header CONFIGURE_DEPENDS ${CMAKE_SOURCE_DIR}/include/deal.II/base/*.h ) diff --git a/source/cgal/CMakeLists.txt b/source/cgal/CMakeLists.txt index d1658c39df..af68ec1ad6 100644 --- a/source/cgal/CMakeLists.txt +++ b/source/cgal/CMakeLists.txt @@ -40,7 +40,7 @@ if(DEAL_II_WITH_CGAL) ) endif() -file(GLOB _header +file(GLOB _header CONFIGURE_DEPENDS ${CMAKE_SOURCE_DIR}/include/deal.II/cgal/*.h ) diff --git a/source/differentiation/ad/CMakeLists.txt b/source/differentiation/ad/CMakeLists.txt index 941b5c7afa..4047580c1f 100644 --- a/source/differentiation/ad/CMakeLists.txt +++ b/source/differentiation/ad/CMakeLists.txt @@ -60,7 +60,7 @@ if(DEAL_II_TRILINOS_WITH_SACADO) endif() -file(GLOB _header +file(GLOB _header CONFIGURE_DEPENDS ${CMAKE_SOURCE_DIR}/include/deal.II/differentiation/ad/*.h ) diff --git a/source/differentiation/sd/CMakeLists.txt b/source/differentiation/sd/CMakeLists.txt index 4192ad5c13..e9efd4352e 100644 --- a/source/differentiation/sd/CMakeLists.txt +++ b/source/differentiation/sd/CMakeLists.txt @@ -35,7 +35,7 @@ if(DEAL_II_WITH_SYMENGINE) endif() -file(GLOB _header +file(GLOB _header CONFIGURE_DEPENDS ${CMAKE_SOURCE_DIR}/include/deal.II/differentiation/sd/*.h ) diff --git a/source/distributed/CMakeLists.txt b/source/distributed/CMakeLists.txt index 9fe0810890..0d447b75d4 100644 --- a/source/distributed/CMakeLists.txt +++ b/source/distributed/CMakeLists.txt @@ -62,7 +62,7 @@ setup_source_list("${_unity_include_src}" ) -file(GLOB _header +file(GLOB _header CONFIGURE_DEPENDS ${CMAKE_SOURCE_DIR}/include/deal.II/distributed/*.h ) diff --git a/source/dofs/CMakeLists.txt b/source/dofs/CMakeLists.txt index 8cd9a594c4..e41b03da7d 100644 --- a/source/dofs/CMakeLists.txt +++ b/source/dofs/CMakeLists.txt @@ -54,7 +54,7 @@ set(_inst dof_tools_sparsity.inst.in ) -file(GLOB _header +file(GLOB _header CONFIGURE_DEPENDS ${CMAKE_SOURCE_DIR}/include/deal.II/dofs/*.h ) diff --git a/source/fe/CMakeLists.txt b/source/fe/CMakeLists.txt index 96be15caee..4d68b04c26 100644 --- a/source/fe/CMakeLists.txt +++ b/source/fe/CMakeLists.txt @@ -146,7 +146,7 @@ set(_inst mapping_related_data.inst.in ) -file(GLOB _header +file(GLOB _header CONFIGURE_DEPENDS ${CMAKE_SOURCE_DIR}/include/deal.II/fe/*.h ) diff --git a/source/gmsh/CMakeLists.txt b/source/gmsh/CMakeLists.txt index 18b506a69e..a48cf27e27 100644 --- a/source/gmsh/CMakeLists.txt +++ b/source/gmsh/CMakeLists.txt @@ -29,7 +29,7 @@ if(DEAL_II_WITH_GMSH) endif() -file(GLOB _header +file(GLOB _header CONFIGURE_DEPENDS ${CMAKE_SOURCE_DIR}/include/deal.II/gmsh/*.h ) diff --git a/source/grid/CMakeLists.txt b/source/grid/CMakeLists.txt index 2f5d864651..7b1c87ee62 100644 --- a/source/grid/CMakeLists.txt +++ b/source/grid/CMakeLists.txt @@ -93,7 +93,7 @@ set(_inst tria_objects.inst.in ) -file(GLOB _header +file(GLOB _header CONFIGURE_DEPENDS ${CMAKE_SOURCE_DIR}/include/deal.II/grid/*.h ) diff --git a/source/hp/CMakeLists.txt b/source/hp/CMakeLists.txt index 2e0d052b1d..de2654d75b 100644 --- a/source/hp/CMakeLists.txt +++ b/source/hp/CMakeLists.txt @@ -38,7 +38,7 @@ set(_inst refinement.inst.in ) -file(GLOB _header +file(GLOB _header CONFIGURE_DEPENDS ${CMAKE_SOURCE_DIR}/include/deal.II/hp/*.h ) diff --git a/source/integrators/CMakeLists.txt b/source/integrators/CMakeLists.txt index 93f9b8367f..51c2856d05 100644 --- a/source/integrators/CMakeLists.txt +++ b/source/integrators/CMakeLists.txt @@ -15,7 +15,7 @@ set(_src ) -file(GLOB _header +file(GLOB _header CONFIGURE_DEPENDS ${CMAKE_SOURCE_DIR}/include/deal.II/integrators/*.h ) diff --git a/source/lac/CMakeLists.txt b/source/lac/CMakeLists.txt index 4c667cbe0d..68d9e1645f 100644 --- a/source/lac/CMakeLists.txt +++ b/source/lac/CMakeLists.txt @@ -191,7 +191,7 @@ setup_source_list("${_unity_include_src}" _src ) -file(GLOB _header +file(GLOB _header CONFIGURE_DEPENDS ${CMAKE_SOURCE_DIR}/include/deal.II/lac/*.h ) diff --git a/source/matrix_free/CMakeLists.txt b/source/matrix_free/CMakeLists.txt index d52319c8a3..448c37efe9 100644 --- a/source/matrix_free/CMakeLists.txt +++ b/source/matrix_free/CMakeLists.txt @@ -48,7 +48,7 @@ set(_inst shape_info.inst.in ) -file(GLOB _header +file(GLOB _header CONFIGURE_DEPENDS ${CMAKE_SOURCE_DIR}/include/deal.II/matrix_free/*.h ) diff --git a/source/meshworker/CMakeLists.txt b/source/meshworker/CMakeLists.txt index 9f6381b541..1a2afe009c 100644 --- a/source/meshworker/CMakeLists.txt +++ b/source/meshworker/CMakeLists.txt @@ -25,7 +25,7 @@ set(_inst scratch_data.inst.in ) -file(GLOB _header +file(GLOB _header CONFIGURE_DEPENDS ${CMAKE_SOURCE_DIR}/include/deal.II/meshworker/*.h ) diff --git a/source/multigrid/CMakeLists.txt b/source/multigrid/CMakeLists.txt index 5dd429fff2..12d9932847 100644 --- a/source/multigrid/CMakeLists.txt +++ b/source/multigrid/CMakeLists.txt @@ -52,7 +52,7 @@ set(_inst multigrid.inst.in ) -file(GLOB _header +file(GLOB _header CONFIGURE_DEPENDS ${CMAKE_SOURCE_DIR}/include/deal.II/multigrid/*.h ) diff --git a/source/non_matching/CMakeLists.txt b/source/non_matching/CMakeLists.txt index 91d1f26355..4d4bacd489 100644 --- a/source/non_matching/CMakeLists.txt +++ b/source/non_matching/CMakeLists.txt @@ -29,7 +29,7 @@ set(_src coupling.inst.in ) -file(GLOB _header +file(GLOB _header CONFIGURE_DEPENDS ${CMAKE_SOURCE_DIR}/include/deal.II/non_matching/*.h ) diff --git a/source/numerics/CMakeLists.txt b/source/numerics/CMakeLists.txt index aa5b52eee2..ef72800b84 100644 --- a/source/numerics/CMakeLists.txt +++ b/source/numerics/CMakeLists.txt @@ -105,7 +105,7 @@ set(_inst vector_tools_rhs.inst.in ) -file(GLOB _header +file(GLOB _header CONFIGURE_DEPENDS ${CMAKE_SOURCE_DIR}/include/deal.II/numerics/*.h ) diff --git a/source/opencascade/CMakeLists.txt b/source/opencascade/CMakeLists.txt index 1004bc8d96..46f57e28ac 100644 --- a/source/opencascade/CMakeLists.txt +++ b/source/opencascade/CMakeLists.txt @@ -29,7 +29,7 @@ if (DEAL_II_WITH_OPENCASCADE) ) endif() -file(GLOB _header +file(GLOB _header CONFIGURE_DEPENDS ${CMAKE_SOURCE_DIR}/include/deal.II/opencascade/*.h ) diff --git a/source/optimization/rol/CMakeLists.txt b/source/optimization/rol/CMakeLists.txt index e870da4cc6..f4c78d654f 100644 --- a/source/optimization/rol/CMakeLists.txt +++ b/source/optimization/rol/CMakeLists.txt @@ -18,7 +18,7 @@ set(_src set(_inst ) -file(GLOB _header +file(GLOB _header CONFIGURE_DEPENDS ${CMAKE_SOURCE_DIR}/include/deal.II/optimization/rol/*.h ) diff --git a/source/particles/CMakeLists.txt b/source/particles/CMakeLists.txt index 9e7392b51e..453ba83346 100644 --- a/source/particles/CMakeLists.txt +++ b/source/particles/CMakeLists.txt @@ -29,7 +29,7 @@ set(_inst utilities.inst.in ) -file(GLOB _header +file(GLOB _header CONFIGURE_DEPENDS ${CMAKE_SOURCE_DIR}/include/deal.II/particles/*.h ) diff --git a/source/physics/CMakeLists.txt b/source/physics/CMakeLists.txt index 758646c1ed..acbf3332c4 100644 --- a/source/physics/CMakeLists.txt +++ b/source/physics/CMakeLists.txt @@ -23,7 +23,7 @@ set(_inst transformations.inst.in ) -file(GLOB _header +file(GLOB _header CONFIGURE_DEPENDS ${CMAKE_SOURCE_DIR}/include/deal.II/physics/*.h ) diff --git a/source/physics/elasticity/CMakeLists.txt b/source/physics/elasticity/CMakeLists.txt index b0782f13e4..f4b8348877 100644 --- a/source/physics/elasticity/CMakeLists.txt +++ b/source/physics/elasticity/CMakeLists.txt @@ -22,7 +22,7 @@ set(_inst standard_tensors.inst.in ) -file(GLOB _header +file(GLOB _header CONFIGURE_DEPENDS ${CMAKE_SOURCE_DIR}/include/deal.II/physics/elasticity/*.h ) diff --git a/source/sundials/CMakeLists.txt b/source/sundials/CMakeLists.txt index e8f91d5d4c..e6a622ebd5 100644 --- a/source/sundials/CMakeLists.txt +++ b/source/sundials/CMakeLists.txt @@ -32,7 +32,7 @@ if (DEAL_II_WITH_SUNDIALS) ) endif() -file(GLOB _header +file(GLOB _header CONFIGURE_DEPENDS ${CMAKE_SOURCE_DIR}/include/deal.II/sundials/*.h ) diff --git a/source/trilinos/CMakeLists.txt b/source/trilinos/CMakeLists.txt index eb373a2fb2..fc73e8429a 100644 --- a/source/trilinos/CMakeLists.txt +++ b/source/trilinos/CMakeLists.txt @@ -28,7 +28,7 @@ if(DEAL_II_TRILINOS_WITH_NOX) endif() -file(GLOB _header +file(GLOB _header CONFIGURE_DEPENDS ${CMAKE_SOURCE_DIR}/include/deal.II/trilinos/*.h ) -- 2.39.5