From: Matthias Maier Date: Mon, 24 Mar 2025 23:13:48 +0000 (-0500) Subject: CMake: small code refactoring X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f744b218a8919497653b918bf9a017c23747a9e;p=dealii.git CMake: small code refactoring --- diff --git a/cmake/configure/configure_20_petsc.cmake b/cmake/configure/configure_20_petsc.cmake index f3a237da7e..6c91802d42 100644 --- a/cmake/configure/configure_20_petsc.cmake +++ b/cmake/configure/configure_20_petsc.cmake @@ -99,6 +99,19 @@ endmacro() macro(feature_petsc_configure_external) + # + # Propagate some PETSc configuration variables into DEAL_II namespace: + # + + set(DEAL_II_PETSC_WITH_COMPLEX ${PETSC_WITH_COMPLEX}) + set(DEAL_II_PETSC_WITH_HYPRE ${PETSC_WITH_HYPRE}) + set(DEAL_II_PETSC_WITH_MUMPS ${PETSC_WITH_MUMPS}) + set(DEAL_II_PETSC_WITH_KOKKOS ${PETSC_WITH_KOKKOS}) + + # + # Figure out all the possible instantiations we need: + # + set(DEAL_II_EXPAND_PETSC_MPI_VECTOR "PETScWrappers::MPI::Vector") set(DEAL_II_EXPAND_PETSC_MPI_BLOCKVECTOR "PETScWrappers::MPI::BlockVector") set(DEAL_II_EXPAND_PETSC_SPARSE_MATRICES @@ -138,7 +151,3 @@ endmacro() configure_feature(PETSC) -set(DEAL_II_PETSC_WITH_COMPLEX ${PETSC_WITH_COMPLEX}) -set(DEAL_II_PETSC_WITH_HYPRE ${PETSC_WITH_HYPRE}) -set(DEAL_II_PETSC_WITH_MUMPS ${PETSC_WITH_MUMPS}) -set(DEAL_II_PETSC_WITH_KOKKOS ${PETSC_WITH_KOKKOS})