Aliaksandr Averchanka
7d2cc6ece6
presets: Allow comments in presets files
...
Co-authored-by: Kanaiym <abdigak@clarkson.edu>
Fixes : #22791
2024-06-24 15:42:46 -04:00
Cristian Le
1a38ffc656
presets: Expand more macros in the include
directive
...
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
2024-02-21 13:47:08 -05:00
Cristian Le
741a207717
presets: Refactor macro expander implementation
...
Change the macro expander to use vtable dispatch.
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
2024-02-16 07:50:01 -05:00
ChenMoFeiJin
f1a7179520
presets: Add $schema property to JSON schema
...
Many modern code editors have support for JSON Schema. When you specify
the `$schema` property in a JSON file, the editor can provide features
like auto-completion, error checking, etc., which can improve your
efficiency when writing and modifying the `CMakePresets.json` file.
2023-09-12 18:18:37 +08:00
Kyle Edwards
2588bf090c
CMakePresets: Make error generators proper functions
...
And rename cmCMakePresetErrors to cmCMakePresetsErrors.
2023-08-16 09:47:29 -04:00
Zoran Angelov
f552ba6e6d
presets: add support for macro expansion to includes
...
Only `$penv{}` can be expanded when processing includes.
2023-04-26 10:03:53 -04:00
Artin Alavi
8e579b0228
presets: Add trace options to configure presets
...
Add JSON schema version 7 to support them.
Fixes : #22543
2023-03-30 09:18:53 -04:00
Martin Duffy
19305afd8a
presets: Improve JSON parser and error messages
2023-03-29 10:41:19 -04:00
Rose
6d15754814
Make vector operations more efficient
2022-12-10 12:48:09 -05:00
Kyle Edwards
9270a02003
CMakePresets.json: Add outputJUnitFile to test presets schema
2022-10-18 15:41:29 -04:00
Kyle Edwards
e316812884
CMakePresets.json: Add workflow presets to schema
2022-09-26 10:53:28 -04:00
Kyle Edwards
b699610df4
cmCMakePresetsGraph: Add package presets
2022-08-31 10:18:01 -04:00
Sankhesh Jhaveri
47929ee98c
presets: Add basic error forwarding from cmake preset json parser
...
Print errors only if there are errors. Add filename for better
introspection, particularly for FileNotFound errors with presets.
2022-08-03 10:20:04 -04:00
Martin Duffy
30336dab66
cmJSONHelpers: Restructure cmJSONHelpers
...
Restructure cmJSONHelpers to prevent SunPro errors when passing context.
2022-05-05 12:12:12 -04:00
Frank Winklmeier
7a8ca8f842
cmCMakePresetsGraph: do not set default value for TestOutputTruncation
...
The `TestOutputTruncation` is an optional preset. Do not set a default
value to avoid failing the JSON schema version check.
Closes issue #23411 .
2022-04-12 13:41:07 +02:00
Frank Winklmeier
140704d443
ctest: add option for output truncation
...
Add `--test-output-truncation` to `ctest`. This option can be used to
customize which part of the test output is being truncated. Currently
supported values are `tail`, `middle` and `head`.
Also add equivalent `CTEST_CUSTOM_TEST_OUTPUT_TRUNCATION` variable.
Fixes : #23206
2022-03-08 08:18:02 -05:00
Frank Winklmeier
359e5b17d8
presets: bump version to v5
...
Prepare for new test preset fields.
2022-03-08 08:18:02 -05:00
Kyle Edwards
0c2d234bc9
CMakePresets: Allow files included from CMakePresets.json to be anywhere
...
There are some valid use cases for allowing these files to be outside
the project directory. Relax the restriction, and include a strong
warning in the documentation.
2022-01-19 11:21:35 -05:00
Kyle Edwards
26a5512c0f
CMakePresets: Add include field
...
Fixes : #21331
2022-01-06 19:46:41 -05:00
Kyle Edwards
a239f23a98
Refactor: Generalize file graph in CMakePresets
...
Before this refactoring, presets had a simple flag that marked them
as "user" or "not user", and checking the file graph of two files
was as simple as checking this flag. This only allowed for two files
in the graph. Generalize the code to allow for arbitrarily many files
in the graph.
2022-01-06 19:46:41 -05:00
Kyle Edwards
84d440caac
Refactor: Split JSON processing into configure, build, and test presets
...
Split up the file so that it won't be too big on some systems.
2022-01-06 18:52:30 -05:00
Kyle Edwards
fd6ea2f67f
Refactor: Rename cmCMakePresetsFile to cmCMakePresetsGraph
...
And change all references to "file" to say "graph" instead.
2022-01-06 18:52:30 -05:00