.. _dune_target_enable_all_packages:

dune_target_enable_all_packages
===============================

.. cmake_function:: dune_target_enable_all_packages

   .. cmake_param:: TARGETS
      :multi:

      A list of targets to add all flags etc. too.

   Adds all currently registered package flags (see :ref:`dune_register_package_flags`) to the given targets.
   This function is mainly intended to help write DUNE modules that want to use :ref:`dune_enable_all_packages` and
   define their own libraries, but need to be compatible with CMake < 3.1

