[CMake] Setting default make options for Makefiles generator

Kito Berg-Taylor kito.berg-taylor at dlr.de
Thu Mar 5 05:17:27 EST 2009


I would like to second this idea, because it would solve another problem
I'm having regarding CMake and environment variables. 

Not to mention that being able to set the default to -j4 would be useful
for internal projects where it's known that all machines building the
project will have uniform hardware specifications.

-kito

On Thu, Mar 5, 2009 at 9:46 AM, Eric Noulard <eric.noulard at gmail.com> wrote:
> 
> > 2009/3/5 Adolfo Rodr?guez <dofo79 at gmail.com>:
> > > Thanks Philip,
> > >
> > > I had considered the alias option before, but wanted to rule out that
> > there
> > > was no way of doing it the scope of a cmake project, however strange that
> > > may sound. I will probably take that path now.
> >
> > Note that I find the idea of being able to pass generator-specific
> > options/file
> > to cmake as a good idea. It could be done via a cmake command line option
> >
> > cmake -G"Unix Makefiles" -Go"whatever option passed to the specific
> > generator"
> >
> > the -Go flags may be used to pass on generator specific options to the
> > generator itself. It may be used to pass some options such as the parallel
> > build
> > for the makefile generator  or  whatever fancy VisualStudio specific
> > option to it etc...
> >
> > -Go <string>
> > would be a placeholder which should be passed "as-is" to the generator
> > which may implement it's own way to handle its specific options
> > (more flags, file names containing things, etc...)
> >
> > the baseline would be that generator shall not require -Go string but "may"
> > support specific options.
> >
> > Do you (all) think it's worth a feature request ?
> >
> > --
> > Erk
> >


More information about the CMake mailing list