diff options
author | Brad King <brad.king@kitware.com> | 2020-10-07 11:25:43 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-10-07 11:25:52 (GMT) |
commit | c4c86acaac41a1e85bd5700d505e9470b88c9026 (patch) | |
tree | 1b3b7a2ebfdfb8544669fdc52b3d4e512ddc0ed3 /Help | |
parent | c61f820a7fb1b191fe5591805f7e53fc52424f93 (diff) | |
parent | a395cb516bacb43d082075779055b88c646e2e80 (diff) | |
download | CMake-c4c86acaac41a1e85bd5700d505e9470b88c9026.zip CMake-c4c86acaac41a1e85bd5700d505e9470b88c9026.tar.gz CMake-c4c86acaac41a1e85bd5700d505e9470b88c9026.tar.bz2 |
Merge topic 'cmake-presets-empty-var'
a395cb516b CMakePresets.json: Prohibit empty variable names
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5339
Diffstat (limited to 'Help')
-rw-r--r-- | Help/manual/cmake.1.rst | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/Help/manual/cmake.1.rst b/Help/manual/cmake.1.rst index 764f61e..0f00f53 100644 --- a/Help/manual/cmake.1.rst +++ b/Help/manual/cmake.1.rst @@ -354,9 +354,10 @@ source and build trees and generate a buildsystem: ``cacheVariables`` - An optional map of cache variables. The key is the variable name, and the - value is either ``null``, a string representing the value of the variable - (which supports macro expansion), or an object with the following fields: + An optional map of cache variables. The key is the variable name (which + may not be an empty string), and the value is either ``null``, a string + representing the value of the variable (which supports macro expansion), + or an object with the following fields: ``type`` @@ -376,14 +377,14 @@ source and build trees and generate a buildsystem: ``environment`` - An optional map of environment variables. The key is the variable name, - and the value is either ``null`` or a string representing the value of - the variable. Each variable is set regardless of whether or not a value - was given to it by the process's environment. This field supports macro - expansion, and environment variables in this map may reference each - other, and may be listed in any order, as long as such references do not - cause a cycle (for example, if ``ENV_1`` is ``$env{ENV_2}``, ``ENV_2`` - may not be ``$env{ENV_1}``.) + An optional map of environment variables. The key is the variable name + (which may not be an empty string), and the value is either ``null`` or + a string representing the value of the variable. Each variable is set + regardless of whether or not a value was given to it by the process's + environment. This field supports macro expansion, and environment + variables in this map may reference each other, and may be listed in any + order, as long as such references do not cause a cycle (for example, + if ``ENV_1`` is ``$env{ENV_2}``, ``ENV_2`` may not be ``$env{ENV_1}``.) Environment variables are inherited through the ``inherits`` field, and the preset's environment will be the union of its own ``environment`` and @@ -478,10 +479,11 @@ source and build trees and generate a buildsystem: ``$env{<variable-name>}`` - Environment variable with name ``<variable-name>``. If the variable is - defined in the ``environment`` field, that value is used instead of the - value from the parent environment. If the environment variable is not - defined, this evaluates as an empty string. + Environment variable with name ``<variable-name>``. The variable name may + not be an empty string. If the variable is defined in the ``environment`` + field, that value is used instead of the value from the parent environment. + If the environment variable is not defined, this evaluates as an empty + string. Note that while Windows environment variable names are case-insensitive, variable names within a preset are still case-sensitive. This may lead to |