Replies: 2 comments 3 replies
-
Hey, thanks for the suggestion, I can see how such a feature would be useful! One thing that comes to mind is that imo we usually don't care much about outdated dependencies (unless there is a severe bug). But when the time to update comes it would be super helpful to have a tool on-demand that queries for newer versions and notifies us about available updates. Maybe this would be great to introduce as an additional CMake package / target that checks for available updates as (e.g. by calling As for the version scope, in general it varies on a dependency basis, which is why most package managers allow users to specify a range of acceptable versions per package. However, as CPM.cmake still requires the user to update dependencies manually, perhaps simply showing all available updates (patch, minor, major) may be enough for a first iteration. |
Beta Was this translation helpful? Give feedback.
-
(sharing here from a related comment in the issues) @TheLavaBlock has implemented a clever solution in liblava using a |
Beta Was this translation helpful? Give feedback.
-
I was thinking that it would be beneficial some sort of automatic check if one of the libs imported via cpm has a new version available.
Assuming this feature is available only for third parties that are imported via a semantic versioning git tag,
it would need to interact with git to pull tags, parse tags, and show some kind of nice message.
This opens the question of how to control what kind of update to show (only patch, minor, o major updates), and if this kind of behaviour has to be customizable by library or just global check is ok.
as of now, I'm thinking of a functionality that fires at configuration time if enabled by a function, something like
CPMEnableCheckUpdates( PATCH | MINOR | MAJOR)
does this make sense?
I should be able to write something, using CPM_PACKAGE_[library]_VERSION to decide what libraries to check
Beta Was this translation helpful? Give feedback.
All reactions