cacheVariables is a map with variable names as the keys, but the example in the documentation was not updated to reflect this. Fix the example.
@@ -190,13 +190,12 @@ source and build trees and generate a buildsystem:
"description": "Default build using Ninja generator",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/default",
- "cacheVariables": [
- {
- "name": "MY_CACHE_VARIABLE",
+ "cacheVariables": {
+ "MY_CACHE_VARIABLE": {
"type": "BOOL",
"value": "OFF"
}
- ]
+ }
]