summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2022-03-19 06:33:01 (GMT)
committerCraig Scott <craig.scott@crascit.com>2022-03-19 06:33:45 (GMT)
commite993e2c52c989b80f02ca4bebfa338f399cf08c7 (patch)
treefceb826039f732c51963eb424437658d1ae84fdf
parent66ba460810afdc0e0f65c20b1bc057a204acc82c (diff)
downloadCMake-e993e2c52c989b80f02ca4bebfa338f399cf08c7.zip
CMake-e993e2c52c989b80f02ca4bebfa338f399cf08c7.tar.gz
CMake-e993e2c52c989b80f02ca4bebfa338f399cf08c7.tar.bz2
Help: Clean up INITIALIZE_FROM_VARIABLE define_property() option
INITIALIZE_FROM_VARIABLE is new in CMake 3.23, but the versionadded note was missing in the original commit. The docs also failed to mention that the new option only applies to target properties. Amends fce24e4f10 (define_property(): Add INITIALIZE_FROM_VARIABLE argument, 2022-01-13)
-rw-r--r--Help/command/define_property.rst10
1 files changed, 6 insertions, 4 deletions
diff --git a/Help/command/define_property.rst b/Help/command/define_property.rst
index cd75dea..82d6a0a 100644
--- a/Help/command/define_property.rst
+++ b/Help/command/define_property.rst
@@ -63,7 +63,9 @@ the documentation.
The ``BRIEF_DOCS`` and ``FULL_DOCS`` options are optional.
-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_``.
+.. versionadded:: 3.23
+
+ The ``INITIALIZE_FROM_VARIABLE`` option specifies a variable from which the
+ property should be initialized. It can only be used with target properties.
+ 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_``.