mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-06 05:16:58 +00:00
27 lines
776 B
ReStructuredText
27 lines
776 B
ReStructuredText
RULE_PATTERNS
|
|
-------------
|
|
|
|
.. versionadded:: 4.5
|
|
|
|
Patterns specification for instantiating a rule.
|
|
|
|
The ``RULE_PATTERNS`` property may be set to a
|
|
:ref:`semicolon-separated list <CMake Language Lists>` of patterns using the
|
|
syntax ``PATTERN=VALUE`` or ``PATTERN=``. More precisely, each item must match
|
|
the regular expression ``(^[A-Z][A-Z0-9_]*)=(.*)$``.
|
|
|
|
CMake will automatically drop any patterns which do not match against this
|
|
regular expression.
|
|
|
|
.. versionchanged:: 4.6
|
|
The expansion of patterns is done recursively at generation time so the value
|
|
of a pattern can refer any other pattern.
|
|
|
|
Related properties:
|
|
|
|
* :prop_sf:`<RULE>_PATTERNS` to specify patterns for a specific file.
|
|
|
|
Related commands:
|
|
|
|
* :command:`add_custom_rule` for custom rule specification.
|