| 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. |