Kyle Edwards
609122007d
Merge topic 'cmake-presets-invalid-macro' into release-3.19
...
638557cbfe CMakePresets.json: Properly report macro expansion errors
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5397
2020-10-22 11:05:09 -04:00
Kyle Edwards
920d180047
CMakePresets.json: Allow boolean for cache variable value
...
Fixes : #21327
2020-10-21 10:37:08 -04:00
Kyle Edwards
638557cbfe
CMakePresets.json: Properly report macro expansion errors
...
Make a distinction between strings which simply use the
$vendor{<...>} macro, which is valid but makes it unusable by CMake,
and strings which actually contain invalid macro expansions.
Fixes : #21308
2020-10-21 09:20:52 -04:00
Kyle Edwards
e3bce8edf4
Tests: Add JSON schema validation to CMakePresets.json tests
2020-10-20 12:07:09 -04:00
Kyle Edwards
efab856008
Help: Show environment field
2020-10-19 10:25:57 -04:00
Kyle Edwards
2208db114c
Help: Show multiple ways of doing cacheVariables
...
This demonstrates both the simple string and the complex object,
and ensures that they get automated testing.
2020-10-19 10:25:57 -04:00
Kyle Edwards
94c955e508
Tests: Test the CMakePresets.json example in the documentation
2020-10-09 15:35:54 -04:00
Kyle Edwards
a395cb516b
CMakePresets.json: Prohibit empty variable names
2020-10-06 12:09:38 -04:00
Kyle Edwards
8617479061
CMake: Add presets functionality
2020-10-05 09:49:59 -04:00