.. _dune_instance_apply_bindir:

dune_instance_apply_bindir
==========================

.. cmake_function:: dune_instance_apply_bindir

   .. cmake_brief::

      Modify a filename to be relative to ``CMAKE_CURRENT_BINARY_DIR``.

   .. cmake_param:: fname_var
      :positional:
      :single:
      :required:

      The name of the variable containing the file name.

   This is used to mimic the behaviour of ``configure_file()``.  If the file
   name given is not absolute, it is modified by prepending
   ``${CMAKE_CURRENT_BINARY_DIR}``.


