Skip to content

Conversation

@HTRamsey
Copy link
Collaborator

@HTRamsey HTRamsey commented Jan 2, 2026

Summary

  • Downgrade CMake preset version from 6 to 5 for Qt Creator compatibility
  • Comment out relative paths in ccache.conf (CMake sets via env vars)

Problem

  1. CMake preset version 6 is not supported by Qt Creator, causing it to fail loading the presets
  2. Relative paths in ccache.conf (cache_dir = .cache/ccache, base_dir = .) cause ccache errors when IDEs load the config directly without CMake's environment variable overrides

Solution

  • Use preset version 5 which Qt Creator supports
  • Comment out the relative paths since CMake already sets CCACHE_DIR and CCACHE_BASEDIR environment variables which take precedence

Test plan

  • Verify Qt Creator can load CMakePresets.json
  • Verify ccache works in IDE without errors
  • Verify ccache still works via CMake build

Copilot AI review requested due to automatic review settings January 2, 2026 13:35
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to improve IDE compatibility by downgrading the CMake preset version from 6 to 5 for Qt Creator support and fixing ccache configuration issues when loaded directly by IDEs.

Key Changes:

  • Downgrade CMake preset version from 6 to 5 in two preset files
  • Comment out relative path settings in ccache.conf (cache_dir and base_dir) with improved explanatory comments

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
cmake/presets/common.json Downgrade preset version from 6 to 5 for Qt Creator compatibility
CMakePresets.json.template Downgrade preset version from 6 to 5 for Qt Creator compatibility
tools/ccache.conf Comment out cache_dir and base_dir settings with improved explanatory comments noting CMake sets these via environment variables

@github-actions github-actions bot added size/M and removed size/XS labels Jan 2, 2026
Comment out relative paths in ccache.conf (cache_dir and base_dir).
CMake sets these via environment variables, but IDEs loading the config
directly without CMake's overrides would get ccache errors.
- Downgrade preset version from 6 to 5 for Qt Creator compatibility
- Add cmakeMinimumRequired to common.json
- Simplify configure presets using hidden base configs and inheritance
- Consolidate build presets with default jobs=0 (use all cores)
- Standardize workflow presets across platforms
- Remove redundant preset variations in favor of inheritance
- Clean up debug/release preset naming conventions

This reduces duplication and makes presets more maintainable.
@HTRamsey HTRamsey force-pushed the fix/ccache-qt-creator-compatibility branch from 399ab15 to 85115fd Compare January 2, 2026 16:13
@HTRamsey HTRamsey merged commit cf6165b into mavlink:master Jan 7, 2026
18 of 19 checks passed
@HTRamsey HTRamsey deleted the fix/ccache-qt-creator-compatibility branch January 7, 2026 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant