Help: Fix documentation of CMakePresets.json's cacheVariables

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.
This commit is contained in:
Kyle Edwards
2020-10-09 11:41:47 -04:00
parent 3fb2112880
commit d6af1e83bc

View File

@@ -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"
}
]
}
}
]
}