cpp: Find dependencies when not using CPM to download them - #478
Conversation
|
@musicinmybrain would you consider removing the fetch deps check instead? CPM uses find package underneath. Out of interest, how are you using cucumber/messages in your project? |
|
Also, @musicinmybrain sorry for breaking your dependency chain. I thought I had all use cases covered. |
|
Thanks for the quick response!
I’m maintaining the
Hmm, I could do that. The disadvantage is that this is a lot less helpful for fully offline build environments like what we have in Fedora. In order to use CPM to find the system In other words, I don’t just want to not fetch dependencies, I want to not fetch anything. |
It’s no problem! This is the kind of thing that, as a distribution packager, I’m used to encountering and bringing up with upstreams. |
|
You have convincing arguments. I'll apply the same logic to my pending cucumber/gherkin PR. (I initially was going to get rid of the fetch_deps option and always use CPM, which I applied in my pending gherkin PR. But I'll revert that from the PR. While we are at it, I have another pending/draft PR on cucumber/messages: #473. This PR consists of two big breaking changes. (Essentially I am piggy backing one on the other). Would you be so kind to give some of your thoughts in/on that PR? As for this PR, the change is fine @mpkorstanje Only thing that might be needed is a small update to the changelog.md @musicinmybrain |
|
@musicinmybrain also, "beer mat/coaster thought", would it be worth it to add a sort of test, to test this usecase? Although I think this mostly needs to be resolved in the workflow file, adding a separate job to first download nlohmann + build&install. And then do a cmake configure/build for cucumber/messages/cpp. I don't like it when workflows break without tests falling over. |
🤔 What's changed?
Find dependencies (currently:
nlohmann_json) usingfind_packagewhen not using CPM to download them.⚡️ What's your motivation?
Before this PR:
After this PR (with a system-wide installation of
json-develon Fedora 44):🏷️ What kind of change is this?
♻️ Anything particular you want feedback on?
N/A
📋 Checklist:
This text was originally generated from a template, then edited by hand. You can modify the template here.