From d6af1e83bc1fa7f8dcdeadcf57a91d8e5469dae8 Mon Sep 17 00:00:00 2001 From: Kyle Edwards Date: Fri, 9 Oct 2020 11:41:47 -0400 Subject: 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. --- Help/manual/cmake.1.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Help/manual/cmake.1.rst b/Help/manual/cmake.1.rst index 0f00f53..0eadff4 100644 --- a/Help/manual/cmake.1.rst +++ b/Help/manual/cmake.1.rst @@ -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" } - ] + } } ] } -- cgit v0.12