[CMake] How to change/set default generator

Hendrik Sattler post at hendrik-sattler.de
Wed Dec 10 17:30:51 EST 2008


Am Wednesday 10 December 2008 19:50:42 schrieb David Genest:
> David Cole wrote:
> > Line 2009 of CMake/Source/cmake.cxx chooses the default Visual Studio
>
> generator. Looks > like that block of code forgot to update itself when
> Visual Studio 9 support was added.
>
> > We should, of course, prefer the most recent VS available as the
>
> default.
>
> > I will add some code to CVS CMake to do this, but I may not get to it
>
> for a few days.
>
> I'm a bit surprised that this is hardcoded. Shouldn't it be possible to
> add this preference in a configuration file ? Then, the block of code
> would never forget to update itself :-).

Or add a small .bat file that calls cmake with all of your preferred options. 
Not very uncommon and you can even switch between different option sets 
easily ;)

HS


More information about the CMake mailing list