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

Manuel Klimek klimek at google.com
Tue Jan 18 13:50:44 EST 2011


On Mon, Jan 17, 2011 at 8:52 AM, Brad King <brad.king at kitware.com> wrote:
> On 01/14/2011 06:19 PM, Manuel Klimek wrote:
>> Attached are 2 patches for caching the defines&flags and introducing
>> the options.
>
> Thanks.
>
>> I'll look into testing next, any hints for what to look out for would
>> be appreciated ;)
>
> I think the test needs to build one of CMake's current tests,
> such as COnly, with the new export option.  Then it should parse
> the json file and try re-running all the recorded command lines.
>
> The easiest way to do this is probably to create a new executable
> that builds as part of the main CMake build process when the
> BUILD_TESTING option is on.  It can link to CMakeLib and use
> helpers like cmSystemTools::RunSingleCommand to take care of
> re-running the children.  You'll have to write a tiny json parser
> of course.

Since this is a big integration style test, is it also possible to
integrate a python test? (the whole test would fit into a few lines of
python then)

Cheers,
/Manuel



More information about the cmake-developers mailing list