[CMake] Generator-independent incremental CMake run

Nagger nagger at gmx.de
Wed Aug 13 16:53:45 EDT 2014


Am 13.08.2014 21:59, schrieb Paul Smith:
> On Wed, 2014-08-13 at 21:40 +0200, Nagger wrote:
>> Does anyone already came up with a good solution? Isn't this a common
>> problem?
>
> I'm not sure about the other generators, but the makefile generator has
> this built-in; that is, if the makefiles detect that a cmake file has
> changed it will re-run cmake then restart the build.
>

I'm aware of this. But at least you have to know that a make-generator 
creates a 'Makefile'. You must test if it exists or start an initial 
CMake run otherwise.

And for every other generator a different filename must be checked.

And maybe for other generators there is also a ZERO_CHECK target which 
needs to run before the actual build is started.

"cmake --build" already unifies lot of this stuff, but unfortunately not 
enough.


I hope(d) someone already did some work.
The Jenkins CMake-plugin is quite stupid for running CMake 
'incrementally'. What about other CI servers?


Thanks,
Marc



More information about the CMake mailing list