[CMake] re-config on make all

Vandenbroucke Sander Sander.Vandenbroucke at vandewiele.com
Thu Aug 28 05:12:00 EDT 2008


> -----Original Message-----
> From: Bill Hoffman [mailto:bill.hoffman at kitware.com]
> Sent: woensdag 27 augustus 2008 14:37
> To: Vandenbroucke Sander
> Cc: cmake at cmake.org; Brad King
> Subject: Re: [CMake] re-config on make all
> 
> Vandenbroucke Sander wrote:
> > Hi,
> >
> > Sometimes CMake re-configures my build tree when running make.
> > Unfortunately CMake uses wrong options, I normally set those on the
> > command line. This forces me to re-config & rebuild my entire source
> > tree. This is a bit annoying since, in most cases, this is not
necessary
> > and takes a long time.
> >
> > So here is my question: can I prevent the automatic reconfiguration
and
> > throw an error/warning so the user can do a manual reconfig?
> >
> 
> CMake should use the same options.  Your options should have been
stored
> in the cache.  
You are right, those options are not cached.

> Can you give an example of how this fails?
> 
It fails because CMake re-configures with wrong options, making the
wrong choices...

Thanks,
Sander.


More information about the CMake mailing list