1{
2  "version": 3,
3  "cmakeMinimumRequired": {
4    "major": 3,
5    "minor": 21,
6    "patch": 0
7  },
8  "configurePresets": [
9    {
10      "name": "default",
11      "displayName": "Default Config",
12      "description": "Default build using Ninja generator",
13      "generator": "Ninja",
14      "binaryDir": "${sourceDir}/build/default",
15      "cacheVariables": {
16        "FIRST_CACHE_VARIABLE": {
17          "type": "BOOL",
18          "value": "OFF"
19        },
20        "SECOND_CACHE_VARIABLE": "ON"
21      },
22      "environment": {
23        "MY_ENVIRONMENT_VARIABLE": "Test",
24        "PATH": "$env{HOME}/ninja/bin:$penv{PATH}"
25      },
26      "vendor": {
27        "example.com/ExampleIDE/1.0": {
28          "autoFormat": true
29        }
30      }
31    },
32    {
33      "name": "ninja-multi",
34      "inherits": "default",
35      "displayName": "Ninja Multi-Config",
36      "description": "Default build using Ninja Multi-Config generator",
37      "generator": "Ninja Multi-Config"
38    },
39    {
40      "name": "windows-only",
41      "inherits": "default",
42      "displayName": "Windows-only configuration",
43      "description": "This build is only available on Windows",
44      "condition": {
45        "type": "equals",
46        "lhs": "${hostSystemName}",
47        "rhs": "Windows"
48      }
49    }
50  ],
51  "buildPresets": [
52    {
53      "name": "default",
54      "configurePreset": "default"
55    }
56  ],
57  "testPresets": [
58    {
59      "name": "default",
60      "configurePreset": "default",
61      "output": {"outputOnFailure": true},
62      "execution": {"noTestsAction": "error", "stopOnFailure": true}
63    }
64  ],
65  "vendor": {
66    "example.com/ExampleIDE/1.0": {
67      "autoFormat": false
68    }
69  }
70}
71