summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-01-21 14:16:40 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-01-21 14:16:46 (GMT)
commita86e42a0f53bb3920fa8a9113a40f0ab718c0788 (patch)
tree4159bd7b90dcd1ff62e6c827788ccd169dde4f02 /Help
parent54b1bb7cb3f15b26c211a2f0d7bd4f95ec9fd174 (diff)
parentfce24e4f102686c5c103db301bb698e0ea82765f (diff)
downloadCMake-a86e42a0f53bb3920fa8a9113a40f0ab718c0788.zip
CMake-a86e42a0f53bb3920fa8a9113a40f0ab718c0788.tar.gz
CMake-a86e42a0f53bb3920fa8a9113a40f0ab718c0788.tar.bz2
Merge topic 'target-properties-from-variables'
fce24e4f10 define_property(): Add INITIALIZE_FROM_VARIABLE argument Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !6865
Diffstat (limited to 'Help')
-rw-r--r--Help/command/define_property.rst8
-rw-r--r--Help/release/dev/target-properties-from-variables.rst5
2 files changed, 12 insertions, 1 deletions
diff --git a/Help/command/define_property.rst b/Help/command/define_property.rst
index 9474513..3bd958e 100644
--- a/Help/command/define_property.rst
+++ b/Help/command/define_property.rst
@@ -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_``.
diff --git a/Help/release/dev/target-properties-from-variables.rst b/Help/release/dev/target-properties-from-variables.rst
new file mode 100644
index 0000000..99857c4
--- /dev/null
+++ b/Help/release/dev/target-properties-from-variables.rst
@@ -0,0 +1,5 @@
+target-properties-from-variables
+--------------------------------
+
+* The :command:`define_property` command gained a new
+ ``INITIALIZE_FROM_VARIABLE`` argument.