summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakePresets/RunCMakeTest.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Add test for --list-presets=allKyle Edwards2022-09-231-0/+1
|
* cmake --list-presets: List package as a valid optionKyle Edwards2022-09-151-0/+1
|
* CMakePresets.json: Fix formatting of --list-presets=allKyle Edwards2022-08-311-0/+6
| | | | | Only print an extra newline after a section if that section was actually printed.
* cmake-presets: add ${pathListSep} macroErin Melucci2022-05-121-0/+6
| | | | Fixes: #23282
* cmake: --list=presets=[type] doesn't generate incorrect warningsRobert Maynard2022-04-111-1/+9
| | | | Fixes #23407
* CMakePresets.json: Add ${fileDir} macroKyle Edwards2022-03-071-1/+11
| | | | Fixes: #23214
* Help: Improve wording and structure related to preset includesCraig Scott2022-03-021-0/+5
| | | | | | | | | | | Encourage placing preset includes near the beginning of a preset file and ensure the example shows that usage. Move the prose discussing includes to its own section to improve discoverability and break up paragraphs to make each main point harder to miss. Also clarify ${sourceDir} to remove any ambiguity with regard to its meaning in included files. Issue: #23214
* CMakePresets: Add include fieldKyle Edwards2022-01-071-0/+45
| | | | Fixes: #21331
* CMakePresets: Check presets with their own file versionKyle Edwards2021-07-271-0/+1
| | | | | | | | | 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-0/+5
| | | | | | | | 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
* Tests: Fix RunCMake.CMakePresets example PATH formatBrad King2021-05-051-0/+3
| | | | | | | Since commit 94c955e508 (Tests: Test the CMakePresets.json example in the documentation, 2020-10-09, v3.19.0-rc1~8^2) we transform the documented preset example for testing by replacing the generator. Extend the transformation with a step to fix `PATH` env var syntax.
* cmake-presets: Introduce `toolchainFile` preset optionRobert Maynard2021-04-281-2/+34
| | | | | 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-0/+5
| | | | | | | | 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/+1
|
* CMakePresets.json: Add the ability to conditionally disable presetsKyle Edwards2021-03-221-0/+8
|
* CMakePresets.json: Add ${hostSystemName} macroKyle Edwards2021-03-151-0/+6
|
* cmake: configure preset add support for --install-prefix mappingRobert Maynard2021-03-091-0/+8
|
* Merge topic 'preset-flag-consistency'Brad King2021-02-241-2/+4
|\ | | | | | | | | | | | | | | | | 6fa3647023 ctest: Add support for '--prefix=<prefix>' form of the argument 3357d37761 cmake: Add support for '--build --prefix=<prefix>' form of the argument 2f13fdef0a cmake: Document '--preset <preset>' form of the argument Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5849
| * cmake: Document '--preset <preset>' form of the argumentBrad King2021-02-231-2/+4
| | | | | | | | | | | | This form already works. Document it and add tests. Issue: #21855
* | 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
* | Tests: Factor out RunCMake.CMakePresets schema validationSam Freed2021-02-041-15/+1
|/ | | | | Make it available to similar tests. Also fix whitespace in generated error message.
* CMakePresets.json: Don't warn if no path argument is givenKyle Edwards2020-11-021-0/+7
| | | | | | | | | If --preset is specified with no path argument, use the current directory as the source directory, the preset's binaryDir as the binary directory, and don't issue the standard warning for no path specified. Fixes: #21386
* CMakePresets.json: Rework how --preset argument is handledKyle Edwards2020-10-261-4/+12
| | | | | | | | If a path argument with no -S or -B leads to a cache directory, use that directory as the binary directory. Otherwise, use the binary directory from the preset. Fixes: #21311
* CMakePresets.json: Split cmakeGeneratorConfig fieldKyle Edwards2020-10-221-5/+7
| | | | | | | | 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: Properly report macro expansion errorsKyle Edwards2020-10-211-5/+7
| | | | | | | | 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
* Tests: Add JSON schema validation to CMakePresets.json testsKyle Edwards2020-10-201-0/+28
|
* Tests: Test the CMakePresets.json example in the documentationKyle Edwards2020-10-091-0/+9
|
* CMakePresets.json: Prohibit empty variable namesKyle Edwards2020-10-061-0/+4
|
* CMake: Add presets functionalityKyle Edwards2020-10-051-0/+212