Skip to content

Conversation

@lyorig
Copy link
Contributor

@lyorig lyorig commented Sep 1, 2025

Simplify the usage of CPM's CPM_SOURCE_CACHE variable

Description

QGroundControl provides its own cache QGC_CPM_SOURCE_CACHE variable, which shadows CPM_SOURCE_CACHE. However, this causes the environment variable of CPM_SOURCE_CACHE to be ignored, which is some of us' preferred way to store settings for CMake etc. It'd be nice if the project did away with this extra layer and let its consumers interact with CPM's variables directly.

Test Steps

  1. Clone the QGroundControl repository.
  2. Run CPM_SOURCE_CACHE="$HOME/.cache/CPM" cmake -B build.
  3. The variable will be ignored and CPM will download packages in the default build/cpm_modules directory.

Checklist:

Related Issue

N/A

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@DonLakeFlyer DonLakeFlyer self-requested a review September 23, 2025 19:17
@DonLakeFlyer DonLakeFlyer reopened this Sep 28, 2025
@DonLakeFlyer
Copy link
Contributor

Works great for me

@DonLakeFlyer DonLakeFlyer merged commit a9c9278 into mavlink:master Sep 30, 2025
24 of 27 checks passed
@lyorig lyorig deleted the cpm_source_cache_simplify branch October 12, 2025 12:54
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