[CMake] How to force the configure step to start over

Andreas Mohr andi at lisas.de
Sun Nov 14 02:44:02 EST 2010


Hi,

On Tue, Nov 02, 2010 at 06:03:57PM -0400, cmake-request at cmake.org wrote:
> Message: 4
> Date: Tue, 2 Nov 2010 14:45:35 -0400
> From: David Cole <david.cole at kitware.com>
> Subject: Re: [CMake] How to force the configure step to start over
> To: tmp <template.meta.programmer at googlemail.com>
> Cc: cmake at cmake.org
> Message-ID:
> 	<AANLkTik09yBAJcph-PShf1bHvxvCq5EHQGF==xB+iAtf at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> Elminate the circularity. You'll drive yourself mad.
> 
> :-)

Sounds just about right :)


However back to the question itself:
to force a re-configure, one could "cmake -E touch"
the CMAKE_CURRENT_LIST_FILE, somehow during target building
or some such.
This is quite certainly not the most direct (nor elegant!) way
to force a reconfiguration (any ideas how to force it directly?),
but in some situations such a reconfiguration might help.

Andreas Mohr


More information about the CMake mailing list