Skip to content

Recursively respect include directives in CMake presets files#357

Merged
lceWolf merged 3 commits intoCivitasv:masterfrom
mous16:fix/presets_recursive_include
Feb 6, 2026
Merged

Recursively respect include directives in CMake presets files#357
lceWolf merged 3 commits intoCivitasv:masterfrom
mous16:fix/presets_recursive_include

Conversation

@mous16
Copy link
Copy Markdown
Contributor

@mous16 mous16 commented Jan 13, 2026

With respect to #310 , this PR aims to handle include directives in CMake presets files, allowing to parse also the directives in included files recursively, and avoiding multiple inclusion of same file.

I've also added some stricter controls on CMakePresets and CMakeUserPresets file names, to avoid wrong deduction of include fields.

I'm not a Lua developer, so the code may not be perfect.
Please, let me know if it requires some changes to be acceptable.

Comment thread lua/cmake-tools/presets.lua Outdated
Comment thread lua/cmake-tools/presets.lua Outdated
@mous16 mous16 force-pushed the fix/presets_recursive_include branch from fc97975 to 0b6b024 Compare January 22, 2026 16:59
@mous16
Copy link
Copy Markdown
Contributor Author

mous16 commented Jan 22, 2026

With 0b6b024 I've fixed also the formatting error

@lceWolf lceWolf merged commit 75a3589 into Civitasv:master Feb 6, 2026
2 checks passed
@lceWolf
Copy link
Copy Markdown
Collaborator

lceWolf commented Feb 6, 2026

Thanks for taking care of this. Much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants