[CMAKE][GITHUB] Simplify and consolidate CMakePresets for multi-config builds #1235
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
configurePresets
into a single"default"
plus generator/toolset-specific presets (ninja
,ninja-vc6
,vs2022
,vs2022-vc6
).ninja
andninja-vc6
presets remain separate to avoid requiring binaryDir deletion when switching compilers.vs2022
,vs2022-vc6
).vs2022-vc6
(toolset v60) requires Daffodil and VS2010 to be installed.buildPresets
: all build configuration logic is now handled in CI or at build time, not by maintaining a large preset matrix.Debug
,Release
, andRelWithDebInfo
at build time for each preset.cmakeMinimumRequired
(now set in top-levelCMakeLists.txt
).Benefits
Users can set debug/profile defines at configure time to decouple them from optimization level, or leave them unset and have them switch automatically at build time using generator configuration. This makes mixed setups (like release builds with debug defines) easy and explicit.