[cmake-developers] Extracting target metadata, IDE integration

Aleix Pol aleixpol at kde.org
Fri Oct 3 09:44:43 EDT 2014


On Thu, Oct 2, 2014 at 2:43 PM, Brad King <brad.king at kitware.com> wrote:

> On 10/01/2014 07:46 PM, Aleix Pol wrote:
> > I'm very interested in getting this in and iterating forward.
> >
> > Any comments? How do changes get integrated?
>
> My main concern is that the format has not been proven with a
> corresponding implementation of an actual IDE/plugin to use it.
> Once we start producing a format changing it later will be
> problematic for compatibility.  Even though we added a version
> number to the file, an IDE might not be updated along with a
> CMake that produces a newer version.
>
> Perhaps rather than a boolean "CMAKE_EXPORT_IDE_METADATA"
> setting to enable this, the value should be a version number.
> That way enabling it requires explicit specification of which
> format version is desired.  In this case we would need to use
> a format version number that is independent of th CMake version
> number.  It would simply be incremented every time changes are
> made.  If the version number has the form <major>.<minor> then
> we could increment the minor number whenever fields are added
> and the major number whenever fields are removed or changed.
>
> -Brad
>
>
Ok, I can start working on it in a KDevelop branch and see what needs to be
changed.

Regarding passing the version rather than "ON" probably makes sense. I'll
work on a patch to make it work this way.

Aleix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20141003/5da8a020/attachment-0002.html>


More information about the cmake-developers mailing list