.. _dune_instance_end:

dune_instance_end
=================

.. cmake_function:: dune_instance_end

   .. cmake_brief::

      Close a block started by :ref:`dune_instance_begin()
      <dune_instance_begin>`, and write the files generated from the
      templates given there.

   Write the files generated from the template files given in
   :ref:`dune_instance_begin() <dune_instance_begin>`, including any content
   generated from embedded templates in :ref:`dune_instance_add()
   <dune_instance_add>`.


