[cmake] makes petsc/alugrid cache variables