mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-10 11:29:09 -05:00
define_property(): Change constraints of INITIALIZE_FROM_VARIABLE
Remove the requirement that the variable name have a prefix while keeping the suffix requirement. Require that the property name contains an underscore. Update docs and tests accordingly. Fixes: #23340
This commit is contained in:
committed by
Craig Scott
parent
2aad4cef97
commit
26caa97057
@@ -69,5 +69,7 @@ project via corresponding options to the :command:`get_property` command.
|
||||
|
||||
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_``.
|
||||
The ``<variable>`` name must end with the property name and must not begin
|
||||
with ``CMAKE_`` or ``_CMAKE_``. The property name must contain at least one
|
||||
underscore. It is recommended that the property name have a prefix specific
|
||||
to the project.
|
||||
|
||||
Reference in New Issue
Block a user