Browse Source

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.
Kyle Edwards 5 years ago
parent
commit
d6af1e83bc
1 changed files with 3 additions and 4 deletions
  1. 3 4
      Help/manual/cmake.1.rst

+ 3 - 4
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"
             }
-          ]
+          }
         }
       ]
     }