summaryrefslogtreecommitdiffstats
path: root/Help/manual/presets
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-10-19 18:01:40 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2020-10-21 14:37:08 (GMT)
commit920d18004731c97a828a937e2074b6882ffeb20d (patch)
tree300fb2ca724c39e0f9498736f8b48d0a5bf62fa0 /Help/manual/presets
parentec3b3d2c2f16397b9a40f79a9783f3d207088b93 (diff)
downloadCMake-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/presets')
-rw-r--r--Help/manual/presets/schema.json16
1 files changed, 14 insertions, 2 deletions
diff --git a/Help/manual/presets/schema.json b/Help/manual/presets/schema.json
index 564c94c..ba4568f 100644
--- a/Help/manual/presets/schema.json
+++ b/Help/manual/presets/schema.json
@@ -119,6 +119,10 @@
"description": "Setting a variable to null causes it to not be set, even if a value was inherited from another preset."
},
{
+ "type": "boolean",
+ "description": "A boolean representing the value of the variable. Equivalent to \"TRUE\" or \"FALSE\"."
+ },
+ {
"type": "string",
"description": "A string representing the value of the variable (which supports macro expansion)."
},
@@ -131,8 +135,16 @@
"description": "An optional string representing the type of the variable. It should be BOOL, FILEPATH, PATH, STRING, or INTERNAL."
},
"value": {
- "type": "string",
- "description": "A required string representing the value of the variable. This field supports macro expansion."
+ "anyOf": [
+ {
+ "type": "boolean",
+ "description": "A required boolean representing the value of the variable. Equivalent to \"TRUE\" or \"FALSE\"."
+ },
+ {
+ "type": "string",
+ "description": "A required string representing the value of the variable. This field supports macro expansion."
+ }
+ ]
}
},
"required": [