[Bulk] Re: [CMake] custom_command

Eric Noulard eric.noulard at gmail.com
Thu Oct 4 13:06:09 EDT 2007


2007/10/4, Dizzy <dizzy at roedu.net>:
> On Thursday 04 October 2007 17:20:54 Javier Gonzalez wrote:
> > Hi  again,
> >
> > Thanks Eric for the reply. I think what you propose doesn't work for me
> > and please correct me if I'm wrong. I would like to keep the dependency
> > and it seems to me that when I use CONFIGURE_FILE the file is not
> > generated again (if I remove it, for example).
>
> It should be (at cmake time, do you mean at "make time"?).

The target of CONFIGURE_FILE is generated at "cmake time" i.e.
when you run cmake.

However I think that (at least it works like this for my project)
if the source argument of CONFIGURE_FILE changed or
if the target disappear,
a simple "make" will trigger cmake re-launch and the file
will be regenerated.

Could you try this?
Are you building in-source or out-of-source?

-- 
Erk


More information about the CMake mailing list