define_property(): Add INITIALIZE_FROM_VARIABLE argument

Fixes: #20698
This commit is contained in:
Kyle Edwards
2022-01-13 15:59:48 -05:00
parent 1ca83ae2bb
commit fce24e4f10
27 changed files with 198 additions and 16 deletions

View File

@@ -9,7 +9,8 @@ Define and document custom properties.
TEST | VARIABLE | CACHED_VARIABLE>
PROPERTY <name> [INHERITED]
[BRIEF_DOCS <brief-doc> [docs...]]
[FULL_DOCS <full-doc> [docs...]])
[FULL_DOCS <full-doc> [docs...]]
[INITIALIZE_FROM_VARIABLE <variable>])
Defines one property in a scope for use with the :command:`set_property` and
:command:`get_property` commands. This is primarily useful to associate
@@ -57,3 +58,8 @@ The ``BRIEF_DOCS`` and ``FULL_DOCS`` options are followed by strings to be
associated with the property as its brief and full documentation.
Corresponding options to the :command:`get_property` command will retrieve
the documentation.
The ``INITIALIZE_FROM_VARIABLE`` option is followed by the name of a variable
from which to initialize the property. The variable name must end with the
property name, must have a prefix before the property name, and must not begin
with ``CMAKE_`` or ``_CMAKE_``.

View File

@@ -0,0 +1,5 @@
target-properties-from-variables
--------------------------------
* The :command:`define_property` command gained a new
``INITIALIZE_FROM_VARIABLE`` argument.