[cmake-developers] Generating information for C++ tools in cmake (patch)
Brad King
brad.king at kitware.com
Mon Jan 17 11:52:52 EST 2011
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.
-Brad
More information about the cmake-developers
mailing list