Commit 1d96327
authored
Add support for CMAKE_BUILD_TYPE presets using "type"/"value" form. (#297)
* Add support for CMAKE_BUILD_TYPE presets using "type"/"value" form.
With the current implementation, if CMakePresets.json sets
CMAKE_BUILD_TYPE as an JSON object with a "type" and "value" causes the
build step to fail -- example below.
```json
"CMAKE_BUILD_TYPE": {
"type": "STRING",
"value": "Debug"
}
```
This fix looks for a CMAKE_BUILD_TYPE with a "table" type and extracts
the "value" element, otherwise it falls back to the original behavior.
* Refactor to expand all cacheVariable in type/value form
* Had a rethink about this -- this will ensure expansion of vars in 'value'
* Use . syntax1 parent 72a5eb8 commit 1d96327
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| |||
0 commit comments