diff options
author | Tobias Nießen <tniessen@tnie.de> | 2022-03-30 00:54:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-03-30 13:14:13 (GMT) |
commit | 2f0a3d43e15c2429d6d2b75d0892985b1e8302c0 (patch) | |
tree | 0899ccb78aa14799a1b50d640ffb92e371f3c566 | |
parent | 00677703d00f94702ef94d8dd07387c8405a3caf (diff) | |
download | CMake-2f0a3d43e15c2429d6d2b75d0892985b1e8302c0.zip CMake-2f0a3d43e15c2429d6d2b75d0892985b1e8302c0.tar.gz CMake-2f0a3d43e15c2429d6d2b75d0892985b1e8302c0.tar.bz2 |
Help: Fix string(JSON ... LENGTH ...) signature
The list of indices and/or member names is optional, i.e., can be
empty. For example, string(JSON foo LENGTH "[0,0,0]") sets foo to 3.
-rw-r--r-- | Help/command/string.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Help/command/string.rst b/Help/command/string.rst index 9b707eb..b1ca2cb 100644 --- a/Help/command/string.rst +++ b/Help/command/string.rst @@ -612,7 +612,7 @@ Requires an element of object type. .. code-block:: cmake string(JSON <out-var> [ERROR_VARIABLE <error-variable>] - LENGTH <json-string> <member|index> [<member|index> ...]) + LENGTH <json-string> [<member|index> ...]) Get the length of an element in ``<json-string>`` at the location given by the list of ``<member|index>`` arguments. |