ENVIRONMENT_MODIFICATION_OPS.rst 1.1 KB

1234567891011121314151617181920
  1. - ``reset``: Reset to the unmodified value, ignoring all modifications to
  2. ``MYVAR`` prior to this entry. Note that this will reset the variable to
  3. the value set by :prop_test:`ENVIRONMENT`, if it was set, and otherwise
  4. to its state from the rest of the CTest execution.
  5. - ``set``: Replaces the current value of ``MYVAR`` with ``VALUE``.
  6. - ``unset``: Unsets the current value of ``MYVAR``.
  7. - ``string_append``: Appends singular ``VALUE`` to the current value of
  8. ``MYVAR``.
  9. - ``string_prepend``: Prepends singular ``VALUE`` to the current value of
  10. ``MYVAR``.
  11. - ``path_list_append``: Appends singular ``VALUE`` to the current value of
  12. ``MYVAR`` using the host platform's path list separator (``;`` on Windows
  13. and ``:`` elsewhere).
  14. - ``path_list_prepend``: Prepends singular ``VALUE`` to the current value of
  15. ``MYVAR`` using the host platform's path list separator (``;`` on Windows
  16. and ``:`` elsewhere).
  17. - ``cmake_list_append``: Appends singular ``VALUE`` to the current value of
  18. ``MYVAR`` using ``;`` as the separator.
  19. - ``cmake_list_prepend``: Prepends singular ``VALUE`` to the current value of
  20. ``MYVAR`` using ``;`` as the separator.