[cmake-developers] Generating information for C++ tools in cmake (patch)

Manuel Klimek klimek at google.com
Fri Jan 14 13:58:23 EST 2011


On Fri, Jan 14, 2011 at 10:53 AM, Brad King <brad.king at kitware.com> wrote:
> On 01/14/2011 01:28 PM, Manuel Klimek wrote:
>> I'm fine with making it optional. Another option would be to make it
>> hidden, as we want tools and not users to interact with it. Your call.
>
> Actually, with an option then the file name becomes moot:
>
>  $ cmake ... -DCMAKE_EXPORT_COMPILE_RULES=compile_commands.json

Hm, I was actually going more for a bool option - I'd really like a
file name that's easily recognizable by a tool with minimal user
configuration. We can of course put in a second option with the file
name with a good default.

Cheers,
/Manuel

>>> Okay.  Does JSON support any kind of schema?
>>
>> Why would we need a schema? For documenation? Or do you plan to use
>> meta-tools on it?
>
> Just curious.  Pretty much every time I've ever written code that
> generates a .xml file someone eventually comes along asking for
> a schema.



More information about the cmake-developers mailing list