<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 1, 2017 at 11:15 AM, Domen Vrankar <span dir="ltr"><<a href="mailto:domen.vrankar@gmail.com" target="_blank">domen.vrankar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">2017-11-29 17:07 GMT+01:00 DKLind <span dir="ltr"><<a href="mailto:davidklind@gmail.com" target="_blank">davidklind@gmail.com</a>></span>:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I have finally found time to work on a patch so<br>
CPACK_DEBAIN_<COMPONENT>_PACKA<wbr>GE_VERSION is recognized. I am amazed how<br>
simple the fix actually is.<br>
<br>
I plan on submitting a formal patch soon for Debian and RPM. I don't know<br>
anything about other CMake packaging features that might benefit from this<br>
patch.<br></blockquote><div><br></div><div>Hi, <br></div><div><br></div><div>I've also been working on a bit larger feature extension that would possibly be of interest to you: <a href="https://gitlab.kitware.com/cmake/cmake/merge_requests/1545" target="_blank">https://gitlab.kitware.com/<wbr>cmake/cmake/merge_requests/<wbr>1545</a><br></div><div><br></div><div>I haven't decided on implementing per component versioning since it makes no sense to version different components of the same release differently unless they are a separate project which requires more variable overrides and manual setting of components - ExternalProject seems a better alternative in such cases. Maybe your solution can convince me otherwise.</div></div></div></div></blockquote></div><div><br></div><div>An example where per-component versions would be really useful is if you have one large build that produces multiple products (i.e. one git repo and one CMake build). You may want to be able to create a release package for each product, but if each product has its own distinct version number, then you currently can't quite do it with CMake for some package types. I have exactly this situation at work at the moment. In one project, I get away with it because the release packages are tar balls so I just provide a custom name that embeds the version number for each product using CPACK_ARCHIVE_<component-name>_FILE_NAME. But I have other projects which produce RPMs and for those I don't currently have a solution.</div><div><br></div><div><br></div><div><br></div><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Craig Scott<br><div>Melbourne, Australia</div><div><a href="https://crascit.com" target="_blank">https://crascit.com</a><br></div></div></div></div></div></div></div>
</div></div>