1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-20 21:40:15 +08:00

Help: Clarify that ENVIRONMENT test properties take ;-separated lists

Follow up commit 79f64cc773 (Help: ENVIRONMENT_MODIFICATION clarify only
supports singular values, 2022-02-23) to specifically call out the list
format.

Issue: #23315
This commit is contained in:
Brad King
2022-03-15 13:59:54 -04:00
parent 02cf404ace
commit 8abd714176
2 changed files with 9 additions and 8 deletions

View File

@@ -3,7 +3,7 @@ ENVIRONMENT
Specify environment variables that should be defined for running a test. Specify environment variables that should be defined for running a test.
If set to a list of environment variables and values of the form Set to a :ref:`semicolon-separated list <CMake Language Lists>` list
``MYVAR=value`` those environment variables will be defined while running of environment variables and values of the form ``MYVAR=value``.
the test. The environment changes from this property do not affect other Those environment variables will be defined while running the test.
tests. The environment changes from this property do not affect other tests.

View File

@@ -7,10 +7,11 @@ Specify environment variables that should be modified for running a test. Note
that the operations performed by this property are performed after the that the operations performed by this property are performed after the
:prop_test:`ENVIRONMENT` property is already applied. :prop_test:`ENVIRONMENT` property is already applied.
If set to a list of environment variables and values of the form Set to a :ref:`semicolon-separated list <CMake Language Lists>` of
``MYVAR=OP:VALUE``, where ``MYVAR`` is the case-sensitive name of an environment variables and values of the form ``MYVAR=OP:VALUE``,
environment variable to be modified. Entries are considered in the where ``MYVAR`` is the case-sensitive name of an environment variable
order specified in the property's value. The ``OP`` may be one of: to be modified. Entries are considered in the order specified in the
property's value. The ``OP`` may be one of:
- ``reset``: Reset to the unmodified value, ignoring all modifications to - ``reset``: Reset to the unmodified value, ignoring all modifications to
``MYVAR`` prior to this entry. Note that this will reset the variable to ``MYVAR`` prior to this entry. Note that this will reset the variable to