blob: 663f6a183dce5d83ca6fe5348d23022dcb5bd88f [file] [edit]
TARGET_POLICY
-------------
.. |genex-family| replace:: :ref:`genex-family-target-meta-data`
.. include:: ../manual/include/GENEX_FAMILY.rst
.. code-block:: cmake
$<TARGET_POLICY:policy>
``1`` if the ``policy`` was ``NEW`` when the 'head' target was created, else
``0``. If the ``policy`` was not set, the warning message for the policy will
be emitted. This generator expression only works for a subset of policies.