-
Notifications
You must be signed in to change notification settings - Fork 990
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] Add possibility to change the version written to XXXConfigVersion.cmake generated by CMakeDeps generator #14789
Comments
Hi @nicosmd Thanks for your feedback. Quick question, how would you make it available for |
Hey @memsharded, It is not related in particular to the components. Maybe I'm just misusing the |
There is already a new property:
That defines what gets written in the |
It's not exactly what I had in mind. I agree that in general you don't want to change the package version but I would say that there is at least one use case for it I would like to satisfy. When creating system packages, the version of the package is usually set to |
Ok, I think I understand it better. It feels a bit unusual. In any case, this seems possible, I think listening to the |
You are right, I also haven't seen this much but at least for creating tests for those system packages it is useful to make sure everything is working as expected. yes sure, I would really like to give it a try! |
What is your suggestion?
Hey,
I would like to propose a feature for the CMakeDeps generator. It is basically a feature which is already available for other generators like PkgConfigDeps. Using PkgConfigDeps generator it is possible to influence the version written to the
*.pc
file by settingself.cpp_info.set_property("component_version", "1.14.12")
in the package_info stage.This is actually a very useful feature when creating some kind of wrapper packages like system packages, where the package version might be something like
system
but pointing to an actual version of a library. Therefore it would be great to have something like this for the CMakeDeps generator as well to make the actual version of a library transparent to CMake, I think.Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: