summaryrefslogtreecommitdiffstats
path: root/Source/cmCMakePresetsFile.cxx
Commit message (Collapse)AuthorAgeFilesLines
* CMakePresets: Check presets with their own file versionKyle Edwards2021-07-271-5/+5
| | | | | | | | | 06e6981 added support for optional binaryDir and generator, but use the dependent preset's file version instead of the current preset's file version. Check presets with their own file version instead of their dependent's file version. Fixes: #22428
* CMakePresets.json: Fix expansion issue with empty binaryDirKyle Edwards2021-07-161-4/+6
| | | | | | | | When resolving binaryDir into a full path from a relative path, we forgot to check if binaryDir is altogether empty, causing empty binaryDir's to resolve to the source directory. Fix this. Fixes: #22434
* cmake-presets: Introduce `toolchainFile` preset optionRobert Maynard2021-04-281-0/+10
| | | | | In v3 of the presets, the `--toolchain` command line argument now has a preset mapping.
* cmake-presets: Make generator and binaryDir fields optionalfriendlyanon2021-04-061-16/+22
| | | | | | | | In v3 of the presets, generator and buildDir can be omitted to fall back to regular cmake behavior when these values are not explicitly provided by the user. Fixes: #21987
* CMakePresets.json: Add matches conditionKyle Edwards2021-03-311-0/+20
|
* CMakePresets.json: Add the ability to conditionally disable presetsKyle Edwards2021-03-221-3/+106
|
* Refactor: Move some common code into separate fileKyle Edwards2021-03-191-17/+3
| | | | | | This code is going to be needed by both cmCMakePresetsFile and cmCMakePresetsFileReadJSON when the upcoming condition types are created. Move it into a header file.
* Refactor: Move cmCMakePresetsFile::ReadJSON into a separate fileKyle Edwards2021-03-191-787/+0
| | | | | | Some compilers complain about translation units that are too large. In order to prepare for upcoming additions to cmCMakePresetsFile, split ReadJSON into a separate file.
* Merge topic 'dev/safreed/invalidconfigurepreset'Brad King2021-03-171-4/+12
|\ | | | | | | | | | | | | | | | | bc663dc333 Merge branch 'master' into invalid-configure-preset b9eb3541cf Tests: update tests to catch invalid configurePreset at read-time 83eeeff7dc Fail at read-time if configurePreset field invalid Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5912
| * Merge branch 'master' into invalid-configure-presetKyle Edwards2021-03-161-1/+24
| |\
| * | Fail at read-time if configurePreset field invalidSam Freed2021-03-151-4/+12
| | |
* | | CMakePresets.json: Add ${hostSystemName} macroKyle Edwards2021-03-151-1/+9
| | |
* | | Refactor: Pass CMakePresets.json version to ExpandMacros() functionsKyle Edwards2021-03-151-39/+61
| |/ |/|
* | cmake: configure preset add support for --install-prefix mappingRobert Maynard2021-03-091-1/+24
|/
* Merge branch 'backport-3.19-preset-no-comments' into preset-no-commentsBrad King2021-02-241-0/+1
|\
| * CMakePresets.json: Remove undocumented support for commentsKyle Edwards2021-02-241-0/+1
| | | | | | | | Fixes: #21858
| * Merge topic 'cmake-presets-toolset-arch-config' into release-3.19Craig Scott2020-10-231-14/+52
| |\ | | | | | | | | | | | | | | | | | | 64afabdbcb CMakePresets.json: Split cmakeGeneratorConfig field Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5387
* | | presets: Inherit 'quiet' property for test presetsSam Freed2021-02-151-0/+1
| | | | | | | | | | | | This was missed in the original implementation.
* | | presets: Remove unintended rerunFailed option from test presetsSam Freed2021-02-151-3/+0
| | | | | | | | | | | | | | | | | | | | | This was accidentally included after discussion in #21391 had decided to leave it out. It was never included in a release. Issue: #21391
* | | cmake-presets: Add build and test presetsSam Freed2021-02-011-213/+1047
| | | | | | | | | | | | Fixes: #21391
* | | clang-tidy: fix `readability-use-anyofallof` warningsBen Boeckel2021-01-271-12/+8
| | |
* | | Merge topic 'cmake-presets-toolset-arch-config'Craig Scott2020-10-231-14/+52
|\ \ \ | |/ / |/| / | |/ | | | | | | 64afabdbcb CMakePresets.json: Split cmakeGeneratorConfig field Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5387
| * CMakePresets.json: Split cmakeGeneratorConfig fieldKyle Edwards2020-10-221-14/+52
| | | | | | | | | | | | | | | | Make this field separate for both architecture and toolset. Allow architecture and toolset to be either strings or objects with value and strategy fields. Fixes: #21317
* | CMakePresets.json: Add ${sourceDirName} macroKyle Edwards2020-10-221-0/+4
|/ | | | Fixes: #21312
* Merge topic 'cmake-presets-invalid-macro' into release-3.19Kyle Edwards2020-10-221-111/+159
|\ | | | | | | | | | | | | 638557cbfe CMakePresets.json: Properly report macro expansion errors Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5397
| * CMakePresets.json: Properly report macro expansion errorsKyle Edwards2020-10-211-111/+159
| | | | | | | | | | | | | | | | 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
* | CMakePresets.json: Allow boolean for cache variable valueKyle Edwards2020-10-211-1/+23
|/ | | | Fixes: #21327
* CMakePresets.json: Prohibit empty variable namesKyle Edwards2020-10-061-1/+11
|
* CMake: Add presets functionalityKyle Edwards2020-10-051-2/+2
|
* Presets: Add cmCMakePresetsFile classKyle Edwards2020-10-051-0/+763