diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2020-10-19 18:01:40 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2020-10-21 14:37:08 (GMT) |
commit | 920d18004731c97a828a937e2074b6882ffeb20d (patch) | |
tree | 300fb2ca724c39e0f9498736f8b48d0a5bf62fa0 /Help/manual/cmake-presets.7.rst | |
parent | ec3b3d2c2f16397b9a40f79a9783f3d207088b93 (diff) | |
download | CMake-920d18004731c97a828a937e2074b6882ffeb20d.zip CMake-920d18004731c97a828a937e2074b6882ffeb20d.tar.gz CMake-920d18004731c97a828a937e2074b6882ffeb20d.tar.bz2 |
CMakePresets.json: Allow boolean for cache variable value
Fixes: #21327
Diffstat (limited to 'Help/manual/cmake-presets.7.rst')
-rw-r--r-- | Help/manual/cmake-presets.7.rst | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Help/manual/cmake-presets.7.rst b/Help/manual/cmake-presets.7.rst index 93e1151..7040ad5 100644 --- a/Help/manual/cmake-presets.7.rst +++ b/Help/manual/cmake-presets.7.rst @@ -176,9 +176,10 @@ Format ``cacheVariables`` 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: + may not be an empty string), and the value is either ``null``, a boolean + (which is equivalent to a value of ``"TRUE"`` or ``"FALSE"`` and a type + of ``BOOL``), a string representing the value of the variable (which + supports macro expansion), or an object with the following fields: ``type`` @@ -186,7 +187,8 @@ Format ``value`` - A required string representing the value of the variable. This field + A required string or boolean representing the value of the variable. + A boolean is equivalent to ``"TRUE"`` or ``"FALSE"``. This field supports macro expansion. Cache variables are inherited through the ``inherits`` field, and the |